ConfigImporter::import

public ConfigImporter::import()

Imports the changelist to the target storage.

Return value

\Drupal\Core\Config\ConfigImporter The ConfigImporter instance.

Throws

\Drupal\Core\Config\ConfigException

File

core/lib/Drupal/Core/Config/ConfigImporter.php, line 457

Class

ConfigImporter
Defines a configuration importer.

Namespace

Drupal\Core\Config

Code

1
2
3
4
5
6
7
8
9
10
11
12
13
public function import() {
  if ($this->hasUnprocessedConfigurationChanges()) {
    $sync_steps = $this->initialize();
 
    foreach ($sync_steps as $step) {
      $context = array();
      do {
        $this->doSyncStep($step, $context);
      } while ($context['finished'] < 1);
    }
  }
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.