function LayoutDiscoveryThemeHooks::theme

Same name and namespace in other branches
  1. 11.x core/modules/layout_discovery/src/Hook/LayoutDiscoveryThemeHooks.php \Drupal\layout_discovery\Hook\LayoutDiscoveryThemeHooks::theme()

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/layout_discovery/src/Hook/LayoutDiscoveryThemeHooks.php, line 24

Class

LayoutDiscoveryThemeHooks
Theme hooks for layout_discovery.

Namespace

Drupal\layout_discovery\Hook

Code

public function theme() : array {
  return $this->layoutPluginManager
    ->getThemeImplementations();
}

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