function RulesPlugin::label

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 1323

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'));
}