function ExpressionBase::getFormHandler

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\Engine

Code

public function getFormHandler() {
    if (isset($this->pluginDefinition['form_class'])) {
        $class_name = $this->pluginDefinition['form_class'];
        return new $class_name($this);
    }
}