function RulesUiConfigHandler::updateComponent
Overrides RulesUiHandlerInterface::updateComponent
File
-
src/
Ui/ RulesUiConfigHandler.php, line 125
Class
- RulesUiConfigHandler
- The default handler for RulesUi plugins that store to config.
Namespace
Drupal\rules\UiCode
public function updateComponent(RulesComponent $component) {
$config = $this->getConfig();
if ($config instanceof RulesUiComponentProviderInterface) {
$config->updateFromComponent($component);
}
else {
$config->set($this->pluginDefinition->settings['config_key'], $component->getConfiguration());
}
$this->storeToTempStore($config);
}