You are here

public function TargetInterface::executeHook in Drupal 7 to 8/9 Module Upgrader 8

Executes a hook implementation and returns the result.

Parameters

string $hook: The hook to execute, without the hook_ prefix.

array $arguments: Additional parameters to pass to the hook implementation.

Return value

mixed

Throws

\InvalidArgumentException if the module doesn't implement the hook. \LogicException if the hook contains non-executable logic.

1 method overrides TargetInterface::executeHook()
Target::executeHook in src/Target.php
Executes a hook implementation and returns the result.

File

src/TargetInterface.php, line 87

Class

TargetInterface
Represents a Drupal 7 module being run through the DMU.

Namespace

Drupal\drupalmoduleupgrader

Code

public function executeHook($hook, array $arguments = []);