Skip to content
Snippets Groups Projects
Commit 08c3dc15 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 83a8f3fe
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment