function ProceduralHookThemeHooks::proceduralLegacyAlter
Attributes
#[Hook('procedural_legacy_alter')]
File
-
core/
modules/ system/ tests/ themes/ HookCollector/ procedural_hook_theme/ src/ Hook/ ProceduralHookThemeHooks.php, line 14
Class
- ProceduralHookThemeHooks
- Confirms LegacyHook works with themes.
Namespace
Drupal\procedural_hook_theme\HookCode
public function proceduralLegacyAlter(array &$args) : void {
$args[] = 'OOP theme hook executed.';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.