function RemoveHook::__construct

Constructs a RemoveHook object.

Parameters

string $hook: The hook name from which to remove the target implementation.

class-string $class: The class name of the target hook implementation.

string $method: The method name of the target hook implementation. If the class instance itself is the listener, this should be '__invoke'.

File

core/lib/Drupal/Core/Hook/Attribute/RemoveHook.php, line 27

Class

RemoveHook
Removes an already existing implementation.

Namespace

Drupal\Core\Hook\Attribute

Code

public function __construct(string $hook, string $class, string $method) {
}

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