RemoveHook.php
Namespace
Drupal\Core\Hook\AttributeFile
-
core/
lib/ Drupal/ Core/ Hook/ Attribute/ RemoveHook.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Core\Hook\Attribute;
/**
* Removes an already existing implementation.
*
* The effect of this attribute is independent from the specific class or method
* on which it is placed.
*/
class RemoveHook implements HookAttributeInterface {
/**
* Constructs a RemoveHook object.
*
* @param string $hook
* The hook name from which to remove the target implementation.
* @param class-string $class
* The class name of the target hook implementation.
* @param string $method
* The method name of the target hook implementation.
* If the class instance itself is the listener, this should be '__invoke'.
*/
public function __construct(string $hook, string $class, string $method) {
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
RemoveHook | Removes an already existing implementation. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.