You are here

public function LibraryPattern::getThemeImplementation in UI Patterns 8

Get theme implementation for current pattern.

Return value

array Theme implementation array.

Overrides PatternBase::getThemeImplementation

See also

ui_patterns_theme()

File

modules/ui_patterns_library/src/Plugin/UiPatterns/Pattern/LibraryPattern.php, line 57

Class

LibraryPattern
The UI Pattern plugin.

Namespace

Drupal\ui_patterns_library\Plugin\UiPatterns\Pattern

Code

public function getThemeImplementation() {
  $item = parent::getThemeImplementation();
  $definition = $this
    ->getPluginDefinition();
  $item[$definition['theme hook']] += $this
    ->processTemplateProperty($definition);
  $item[$definition['theme hook']] += $this
    ->processCustomThemeHookProperty($definition);
  return $item;
}