function ImplementationList::hasImplementationsForModules
Checks whether the list has any implementations for specific modules.
Parameters
list<string> $modules: Modules for which to check.
Return value
bool TRUE if it has implementations for any of the modules, FALSE if not.
File
-
core/
lib/ Drupal/ Core/ Hook/ ImplementationList.php, line 84
Class
- ImplementationList
- Contains the ordered list of implementations for a hook.
Namespace
Drupal\Core\HookCode
public function hasImplementationsForModules(array $modules) : bool {
return (bool) array_intersect($this->modules, $modules);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.