You are here

public function ConfigImporterServiceInterface::importConfigs in Config Importer and Tools 8

Same name and namespace in other branches
  1. 8.2 src/ConfigImporterServiceInterface.php \Drupal\config_import\ConfigImporterServiceInterface::importConfigs()
  2. 8.0 src/ConfigImporterServiceInterface.php \Drupal\config_import\ConfigImporterServiceInterface::importConfigs()

Import configurations.

@example The next example will import the following configs:

  • /directory/outside/webroot/user.role.authenticated.yml
  • /directory/outside/webroot/user.role.anonymous.yml
$this
  ->importConfigs([
  'user.role.authenticated',
  'user.role.anonymous',
]);

Parameters

string[] $configs: Configurations to import.

1 method overrides ConfigImporterServiceInterface::importConfigs()
ConfigImporterService::importConfigs in src/ConfigImporterService.php
Import configurations.

File

src/ConfigImporterServiceInterface.php, line 46

Class

ConfigImporterServiceInterface
Interface ConfigImporterServiceInterface.

Namespace

Drupal\config_import

Code

public function importConfigs(array $configs);