You are here

public function ConfigIgnoreEventSubscriber::onImportTransform in Config Ignore 8.3

Acts when the storage is transformed for import.

Parameters

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

File

src/EventSubscriber/ConfigIgnoreEventSubscriber.php, line 104

Class

ConfigIgnoreEventSubscriber
Makes the import/export aware of ignored configs.

Namespace

Drupal\config_ignore\EventSubscriber

Code

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