protected function crumbs_PluginSystem_PluginInfo::get_routePluginMethods in Crumbs, the Breadcrumbs suite 7.2
Return value
true[][][] Format: $['findParent'][$route][$plugin_key] = true.
See also
crumbs_PluginSystem_PluginInfo::$routePluginMethods
File
- lib/
PluginSystem/ PluginInfo.php, line 153
Class
- crumbs_PluginSystem_PluginInfo
- Info about available plugins and their weights.
Code
protected function get_routePluginMethods() {
$unsorted_all = $this->routePluginMethodsUnsorted;
$types = array(
'decorateBreadcrumb' => 'alter',
'findParent' => 'find',
'findTitle' => 'find',
);
$order = $this->pluginOrder;
$sorted_all = array();
foreach ($types as $base_method_name => $type) {
if (!isset($unsorted_all[$base_method_name])) {
continue;
}
foreach ($unsorted_all[$base_method_name] as $route => $unsorted) {
$sorted = $this
->sortPluginMethods($unsorted_all[$base_method_name][$route], $order[$type]);
if (!empty($sorted)) {
$sorted_all[$base_method_name][$route] = $sorted;
}
}
}
return $sorted_all;
}