You are here

public function ActionExpression::getLabel in Rules 8.3

The label of this expression element that can be shown in the UI.

Return value

string The label for display.

Overrides ExpressionBase::getLabel

1 call to ActionExpression::getLabel()
ActionExpression::executeWithState in src/Plugin/RulesExpression/ActionExpression.php
Execute the expression with a given Rules state.

File

src/Plugin/RulesExpression/ActionExpression.php, line 126

Class

ActionExpression
Provides an executable action expression.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function getLabel() {
  if (!empty($this->configuration['action_id'])) {
    $definition = $this->actionManager
      ->getDefinition($this->configuration['action_id']);
    return $definition['label'];
  }
  return parent::getLabel();
}