public function PatternBase::getThemeImplementation in UI Patterns 8
Get theme implementation for current pattern.
Return value
array Theme implementation array.
Overrides PatternInterface::getThemeImplementation
See also
1 call to PatternBase::getThemeImplementation()
- LibraryPattern::getThemeImplementation in modules/
ui_patterns_library/ src/ Plugin/ UiPatterns/ Pattern/ LibraryPattern.php - Get theme implementation for current pattern.
1 method overrides PatternBase::getThemeImplementation()
- LibraryPattern::getThemeImplementation in modules/
ui_patterns_library/ src/ Plugin/ UiPatterns/ Pattern/ LibraryPattern.php - Get theme implementation for current pattern.
File
- src/
Plugin/ PatternBase.php, line 57
Class
- PatternBase
- Class PatternBase.
Namespace
Drupal\ui_patterns\PluginCode
public function getThemeImplementation() {
$definition = $this
->getPluginDefinition();
$item = [];
$item += $this
->processVariables($definition);
$item += $this
->processUseProperty($definition);
return [
$definition['theme hook'] => $item,
];
}