You are here

public function ConfigIgnoreEventSubscriber::onExportTransform in Config Ignore 8.3

Acts when the storage is transformed for export.

Parameters

\Drupal\Core\Config\StorageTransformEvent $event: The config storage transform event.

File

src/EventSubscriber/ConfigIgnoreEventSubscriber.php, line 116

Class

ConfigIgnoreEventSubscriber
Makes the import/export aware of ignored configs.

Namespace

Drupal\config_ignore\EventSubscriber

Code

public function onExportTransform(StorageTransformEvent $event) {
  if (!Settings::get('config_ignore_deactivate')) {
    $this
      ->transformStorage($event
      ->getStorage(), $this->syncStorage);
  }
}