Issue #1705702 follow-up by tim.plunkett: Instantiate definitions variable to avoid notices.

8.0.x
webchick 2012-10-03 23:49:36 -07:00
parent 83a8f3fe4d
commit 08c3dc159d
1 changed files with 1 additions and 0 deletions

View File

@ -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) {