function ReactionRuleEditForm::prepareEntity

Overrides EntityForm::prepareEntity

File

src/Form/ReactionRuleEditForm.php, line 65

Class

ReactionRuleEditForm
Provides a form to edit a reaction rule.

Namespace

Drupal\rules\Form

Code

protected function prepareEntity() {
    parent::prepareEntity();
    // Replace the config entity with the latest entity from temp store, so any
    // interim changes are picked up.
    $this->entity = $this->rulesUiHandler
        ->getConfig();
}