function RulesComponentEditForm::prepareEntity

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