Issue #1705702 follow-up by tim.plunkett: Instantiate definitions variable to avoid notices.
parent
83a8f3fe4d
commit
08c3dc159d
|
@ -44,6 +44,7 @@ class HookDiscovery implements DiscoveryInterface {
|
|||
* Implements Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinitions().
|
||||
*/
|
||||
public function getDefinitions() {
|
||||
$definitions = array();
|
||||
foreach (module_implements($this->hook) as $module) {
|
||||
$function = $module . '_' . $this->hook;
|
||||
foreach ($function() as $plugin_id => $definition) {
|
||||
|
|
Loading…
Reference in New Issue