function HtmlTag::getInfo

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/Element/HtmlTag.php \Drupal\Core\Render\Element\HtmlTag::getInfo()
  2. 8.9.x core/lib/Drupal/Core/Render/Element/HtmlTag.php \Drupal\Core\Render\Element\HtmlTag::getInfo()
  3. 11.x core/lib/Drupal/Core/Render/Element/HtmlTag.php \Drupal\Core\Render\Element\HtmlTag::getInfo()

Overrides ElementInterface::getInfo

File

core/lib/Drupal/Core/Render/Element/HtmlTag.php, line 52

Class

HtmlTag
Provides a render element for any HTML tag, with properties and value.

Namespace

Drupal\Core\Render\Element

Code

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

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