You are here

public function ConfigEventSubscriber::configDelete in Tome 8

Reacts to delete event.

Parameters

\Drupal\Core\Config\ConfigCrudEvent $event: The configuration event.

File

modules/tome_sync/src/EventSubscriber/ConfigEventSubscriber.php, line 54

Class

ConfigEventSubscriber
Keeps the config export directory synced with config CRUD operations.

Namespace

Drupal\tome_sync\EventSubscriber

Code

public function configDelete(ConfigCrudEvent $event) {
  if (!\Drupal::isConfigSyncing() && !isset($GLOBALS['_tome_sync_installing'])) {
    $this->configStorage
      ->delete($event
      ->getConfig()
      ->getName());
  }
}