You are here

function crumbs_PluginOperation_describe::addRule in Crumbs, the Breadcrumbs suite 7.2

Same name and namespace in other branches
  1. 7 lib/PluginOperation/describe.php \crumbs_PluginOperation_describe::addRule()

To be called from crumbs_InjectedAPI_describeMultiPlugin::addRule()

Parameters

string $key_suffix:

string $title:

1 call to crumbs_PluginOperation_describe::addRule()
crumbs_PluginOperation_describe::invoke in lib/PluginOperation/describe.php

File

lib/PluginOperation/describe.php, line 85

Class

crumbs_PluginOperation_describe
This class uses the PluginOperation pattern, but it does not implement any of the PluginOperation interfaces. This is because it is not supposed to be used with the PluginEngine, but rather from a custom function (see above).

Code

function addRule($key_suffix, $title) {
  $key = $this->pluginKey . '.' . $key_suffix;
  $this
    ->_addRule($key);
  $this
    ->_addDescription($key, $title);
}