You are here

protected function RulesComponentEditForm::prepareEntity in Rules 8.3

Prepares the entity object before the form is built first.

Overrides EntityForm::prepareEntity

File

src/Form/RulesComponentEditForm.php, line 32

Class

RulesComponentEditForm
Provides a form to edit a component.

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