/** * {@inheritdoc} */ 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(); }
/** * {@inheritdoc} */ protected function config($name) { // Get the editable config from the Rules UI handlers, such that any // interim changes to the contained Rules component are picked up. $config = $this->rulesUiHandler ? $this->rulesUiHandler->getConfig() : NULL; if ($config->getName() == $name && in_array($name, $this->getEditableConfigNames())) { return $config; } return parent::config($name); }