Commit 08c3dc15 authored by webchick's avatar webchick

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

parent 83a8f3fe
......@@ -44,6 +44,7 @@ public function getDefinition($plugin_id) {
* 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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment