class LegacyHook
Same name in other branches
- 11.x core/lib/Drupal/Core/Hook/Attribute/LegacyHook.php \Drupal\Core\Hook\Attribute\LegacyHook
This class will not have an effect until Drupal 11.1.0.
This class is included in earlier Drupal versions to prevent phpstan errors for modules implementing object oriented hooks using the #Hook and #LegacyHook attributes.
Hierarchy
- class \Drupal\Core\Hook\Attribute\LegacyHook
Expanded class hierarchy of LegacyHook
File
-
core/
lib/ Drupal/ Core/ Hook/ Attribute/ LegacyHook.php, line 14
Namespace
Drupal\Core\Hook\AttributeView source
class LegacyHook {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.