function RulesAbstractPlugin::label

Returns the label of the element.

Overrides RulesPlugin::label

3 calls to RulesAbstractPlugin::label()
RulesAbstractPlugin::executeByArgs in includes/rules.core.inc
Execute the configuration by passing arguments in a single array.
RulesAction::executeCallback in includes/rules.plugins.inc
Execute the callback and update/save data as specified by the action.
RulesCondition::label in includes/rules.plugins.inc
Returns the label of the element.
1 method overrides RulesAbstractPlugin::label()
RulesCondition::label in includes/rules.plugins.inc
Returns the label of the element.

File

includes/rules.core.inc, line 1586

Class

RulesAbstractPlugin
Defines a common base class for so-called "Abstract Plugins" like actions.

Code

public function label() {
    $info = $this->info();
    return isset($info['label']) ? $info['label'] : t('@plugin "@name"', array(
        '@name' => $this->elementName,
        '@plugin' => $this->plugin(),
    ));
}