function LinkThemeHooks::theme

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/link/src/Hook/LinkThemeHooks.php, line 16

Class

LinkThemeHooks
Theme hooks for link.

Namespace

Drupal\link\Hook

Code

public function theme() : array {
  return [
    'link_formatter_link_separate' => [
      'variables' => [
        'title' => NULL,
        'url_title' => NULL,
        'url' => NULL,
      ],
      'initial preprocess' => static::class . ':preprocessLinkFormatterLinkSeparate',
    ],
  ];
}

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