Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
08c3dc15
Commit
08c3dc15
authored
Oct 03, 2012
by
webchick
Browse files
Issue
#1705702
follow-up by tim.plunkett: Instantiate definitions variable to avoid notices.
parent
83a8f3fe
Changes
1
Show whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
View file @
08c3dc15
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment