You are here

public function RulesPlugin::label in Rules 7.2

Returns the label of the element.

1 call to RulesPlugin::label()
RulesContainerPlugin::executeByArgs in includes/rules.core.inc
Executes container with the given arguments.
4 methods override RulesPlugin::label()
RulesAbstractPlugin::label in includes/rules.core.inc
Returns the label of the element.
RulesAnd::label in includes/rules.plugins.inc
Returns the label of the element.
RulesLoop::label in includes/rules.plugins.inc
Returns the label of the element.
RulesOr::label in includes/rules.plugins.inc
Returns the label of the element.

File

includes/rules.core.inc, line 1312
Rules base classes and interfaces needed for any rule evaluation.

Class

RulesPlugin
Base class for rules plugins.

Code

public function label() {
  if (!empty($this->label) && $this->label != t('unlabeled')) {
    return $this->label;
  }
  $info = $this
    ->info();
  return isset($info['label']) ? $info['label'] : (!empty($this->name) ? $this->name : t('unlabeled'));
}