function ActionExpression::getLabel
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\RulesExpressionCode
public function getLabel() {
if (!empty($this->configuration['action_id'])) {
$definition = $this->actionManager
->getDefinition($this->configuration['action_id']);
return $definition['label'];
}
return parent::getLabel();
}