You are here

class ConfigDistroConfigImporterBatch in Config Distro 8

Custom methods for running the ConfigImporter in a batch.

Hierarchy

Expanded class hierarchy of ConfigDistroConfigImporterBatch

See also

\Drupal\Core\Config\ConfigImporterBatch

File

src/ConfigDistroConfigImporterBatch.php, line 13

Namespace

Drupal\config_distro
View source
class ConfigDistroConfigImporterBatch extends ConfigImporterBatch {

  /**
   * {@inheritdoc}
   */
  public static function finish($success, $results, $operations) {
    parent::finish($success, $results, $operations);
    if ($success) {

      // Dispatch an event to notify modules about the successful import.
      \Drupal::service('event_dispatcher')
        ->dispatch(ConfigDistroEvents::IMPORT);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigDistroConfigImporterBatch::finish public static function Finish batch. Overrides ConfigImporterBatch::finish
ConfigImporterBatch::process public static function Processes the config import batch and persists the importer.