function ContextualLinksPlaceholder::getInfo

Same name in other branches
  1. 9 core/modules/contextual/src/Element/ContextualLinksPlaceholder.php \Drupal\contextual\Element\ContextualLinksPlaceholder::getInfo()
  2. 8.9.x core/modules/contextual/src/Element/ContextualLinksPlaceholder.php \Drupal\contextual\Element\ContextualLinksPlaceholder::getInfo()
  3. 10 core/modules/contextual/src/Element/ContextualLinksPlaceholder.php \Drupal\contextual\Element\ContextualLinksPlaceholder::getInfo()

Overrides ElementInterface::getInfo

File

core/modules/contextual/src/Element/ContextualLinksPlaceholder.php, line 21

Class

ContextualLinksPlaceholder
Provides a contextual_links_placeholder element.

Namespace

Drupal\contextual\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#pre_render' => [
            [
                $class,
                'preRenderPlaceholder',
            ],
        ],
        '#id' => NULL,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.