You are here

public function RulesConditionalPredicateElement::label in Conditional Rules 8

Same name and namespace in other branches
  1. 7 includes/rules_conditional.core.inc \RulesConditionalPredicateElement::label()

Overrides RulesConditionalElement::label

File

includes/rules_conditional.core.inc, line 439
Conditional Rules framework implementation.

Class

RulesConditionalPredicateElement
Base conditional element that uses a predicate.

Code

public function label() {
  $text = '@plugin';
  $variables = array(
    '@plugin' => $this
      ->pluginLabel(),
  );
  if (isset($this->predicate)) {
    $text = '@plugin: @label';
    $variables['@label'] = $this->predicate
      ->label();
  }
  return t($text, $variables);
}