You are here

protected function ReactionRuleEditForm::prepareEntity in Rules 8.3

Prepares the entity object before the form is built first.

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();
}