function crumbs_PluginEngine::invokeAll_find in Crumbs, the Breadcrumbs suite 7
Same name and namespace in other branches
- 6.2 crumbs.plugin_engine.inc \crumbs_PluginEngine::invokeAll_find()
Invoke the plugin operation for all plugins, starting with the plugin with highest priority. The function will stop when it has
Parameters
$plugin_operation: an object that does the method call, and can maintain a state between different plugins' method calls.
File
- lib/
PluginEngine.php, line 51
Class
Code
function invokeAll_find(crumbs_PluginOperationInterface_find $plugin_operation) {
foreach ($this->pluginOrder_find as $plugin_key => $plugin) {
$weight_keeper = $this->weightKeeper
->prefixedWeightKeeper($plugin_key);
$found = $plugin_operation
->invoke($plugin, $plugin_key, $weight_keeper);
if ($found) {
return $found;
}
}
}