You are here

public function RulesAbstractPlugin::label in Rules 7.2

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 1575
Rules base classes and interfaces needed for any rule evaluation.

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(),
  ));
}