ProceduralHookThemeHooks.php
Same filename and directory in other branches
Namespace
Drupal\procedural_hook_theme\HookFile
-
core/
modules/ system/ tests/ themes/ HookCollector/ procedural_hook_theme/ src/ Hook/ ProceduralHookThemeHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\procedural_hook_theme\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Confirms LegacyHook works with themes.
*/
class ProceduralHookThemeHooks {
public function proceduralLegacyAlter(array &$args) : void {
$args[] = 'OOP theme hook executed.';
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| ProceduralHookThemeHooks | Confirms LegacyHook works with themes. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.