You are here

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

Returns if the target module implements a particular hook.

Parameters

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

Return value

bool

1 method overrides TargetInterface::implementsHook()
Target::implementsHook in src/Target.php
Returns if the target module implements a particular hook.

File

src/TargetInterface.php, line 71

Class

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

Namespace

Drupal\drupalmoduleupgrader

Code

public function implementsHook($hook);