Created
April 13, 2016 15:04
-
-
Save jmverges/1533ac0698c676d61a099eb211db07ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function executeProviderMethod($methodName, $uid, $nodeType, $backendLayout, $columnPosition) | |
{ | |
$detectedProviders = $this->providerResolver->resolveProviders($uid, $nodeType, $backendLayout, $columnPosition); | |
$currentDefinitions = []; | |
foreach ($detectedProviders as $provider) { | |
$currentDefinitions = array_merge($currentDefinitions, call_user_func_array([$provider, $methodName], array_values($currentDefinitions))); | |
} | |
return $currentDefinitions; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment