public function ExpressionBase::getFormHandler in Rules 8.3
Returns the form handling class for this expression.
Return value
\Drupal\rules\Form\Expression\ExpressionFormInterface|null The form handling object if there is one, NULL otherwise.
Overrides ExpressionInterface::getFormHandler
2 methods override ExpressionBase::getFormHandler()
- ActionExpression::getFormHandler in src/
Plugin/ RulesExpression/ ActionExpression.php - Returns the form handling class for this expression.
- ConditionExpression::getFormHandler in src/
Plugin/ RulesExpression/ ConditionExpression.php - Returns the form handling class for this expression.
File
- src/
Engine/ ExpressionBase.php, line 117
Class
- ExpressionBase
- Base class for rules expressions.
Namespace
Drupal\rules\EngineCode
public function getFormHandler() {
if (isset($this->pluginDefinition['form_class'])) {
$class_name = $this->pluginDefinition['form_class'];
return new $class_name($this);
}
}