function Link::getInfo

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Render/Element/Link.php \Drupal\Core\Render\Element\Link::getInfo()

File

core/lib/Drupal/Core/Render/Element/Link.php, line 35

Class

Link
Provides a link render element.

Namespace

Drupal\Core\Render\Element

Code

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

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