You are here

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

Return value

crumbs_Container_MultiWildcardData

See also

crumbs_PluginSystem_PluginInfo::$availableKeysMeta

File

lib/PluginSystem/PluginInfo.php, line 251

Class

crumbs_PluginSystem_PluginInfo
Info about available plugins and their weights.

Code

protected function get_availableKeysMeta() {
  $op = new crumbs_PluginOperation_describe();

  /**
   * @var crumbs_PluginInterface $plugin
   */
  foreach ($this->plugins as $plugin_key => $plugin) {
    $op
      ->invoke($plugin, $plugin_key);
  }
  foreach ($this->defaultWeights as $key => $default_weight) {
    $op
      ->setDefaultWeight($key, $default_weight);
  }
  $info = $op
    ->collectedInfo();
  $info->basicMethods = $this->pluginRoutelessMethods;
  $info->routeMethods = $this->pluginRouteMethods;
  return $info;
}