You are here

protected function crumbs_PluginSystem_PluginInfo::get_pluginsSorted in Crumbs, the Breadcrumbs suite 7.2

Sorted plugins for 'find' and 'alter' operations.

Return value

array

See also

crumbs_PluginSystem_PluginInfo::$pluginsSorted

File

lib/PluginSystem/PluginInfo.php, line 431

Class

crumbs_PluginSystem_PluginInfo
Info about available plugins and their weights.

Code

protected function get_pluginsSorted() {
  $sorted = $this->pluginOrder;
  $plugins = $this->plugins;
  foreach (array(
    'find',
    'alter',
  ) as $type) {
    foreach ($sorted[$type] as $plugin_key => &$x) {
      $x = $plugins[$plugin_key];
    }
  }
  return $sorted;
}