/**
* Updates configuration entity in the key store.
*
* @param \Drupal\Core\Config\ConfigCrudEvent $event
* The configuration event.
*/
public function onConfigSave(ConfigCrudEvent
$event) { $saved_config =
$event->
getConfig();
$entity_type_id =
$this->configManager->
getEntityTypeIdByName($saved_config->
getName());
if ($entity_type_id) { $entity_type =
$this->configManager->
getEntityTypeManager()->
getDefinition($entity_type_id);
$this->
updateConfigKeyStore($entity_type,
$saved_config);
} } /**
* Removes configuration entity from key store.
*
* @param \Drupal\Core\Config\ConfigCrudEvent $event
* The configuration event.
*/
public function onConfigDelete(ConfigCrudEvent
$event) { $saved_config =
$event->
getConfig();