class LegacyHook

Same name in other branches
  1. 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

Expanded class hierarchy of LegacyHook

File

core/lib/Drupal/Core/Hook/Attribute/LegacyHook.php, line 14

Namespace

Drupal\Core\Hook\Attribute
View source
class LegacyHook {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.