Skip to content

Instantly share code, notes, and snippets.

@jmverges
Created April 13, 2016 15:04
Show Gist options
  • Save jmverges/1533ac0698c676d61a099eb211db07ae to your computer and use it in GitHub Desktop.
Save jmverges/1533ac0698c676d61a099eb211db07ae to your computer and use it in GitHub Desktop.
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