Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SystemCompactLink.php

function SystemCompactLink::getInfo

Overrides Link::getInfo

File

core/lib/Drupal/Core/Render/Element/SystemCompactLink.php, line 26

Class

SystemCompactLink
Provides a link to show or hide help text on administration pages.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#pre_render' => [
            [
                $class,
                'preRenderCompactLink',
            ],
            [
                $class,
                'preRenderLink',
            ],
        ],
        '#theme_wrappers' => [
            'container' => [
                '#attributes' => [
                    'class' => [
                        'compact-link',
                    ],
                ],
            ],
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal