LegacyHook.php

Same filename in other branches
  1. 11.x core/lib/Drupal/Core/Hook/Attribute/LegacyHook.php

Namespace

Drupal\Core\Hook\Attribute

File

core/lib/Drupal/Core/Hook/Attribute/LegacyHook.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Core\Hook\Attribute;


/**
 * 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.
 */
class LegacyHook {

}

Classes

Title Deprecated Summary
LegacyHook This class will not have an effect until Drupal 11.1.0.

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