interface ConfigImporterServiceInterface in Config Importer and Tools 8
Same name and namespace in other branches
- 8.2 src/ConfigImporterServiceInterface.php \Drupal\config_import\ConfigImporterServiceInterface
- 8.0 src/ConfigImporterServiceInterface.php \Drupal\config_import\ConfigImporterServiceInterface
Interface ConfigImporterServiceInterface.
Hierarchy
- interface \Drupal\Core\DependencyInjection\ContainerInjectionInterface
- interface \Drupal\config_import\ConfigImporterServiceInterface
Expanded class hierarchy of ConfigImporterServiceInterface
All classes that implement ConfigImporterServiceInterface
File
- src/
ConfigImporterServiceInterface.php, line 10
Namespace
Drupal\config_importView source
interface ConfigImporterServiceInterface extends ContainerInjectionInterface {
/**
* Set path to directory where configs stored.
*
* @param string $directory
* Path to directory with configs or type of config directory.
*/
public function setDirectory($directory);
/**
* Get path to directory where configs stored.
*
* @return string
* Path to directory where configs stored.
*/
public function getDirectory();
/**
* Import configurations.
*
* @param string[] $configs
* Configurations to import.
*
* @example
* The next example will import the following configs:
* - /directory/outside/webroot/user.role.authenticated.yml
* - /directory/outside/webroot/user.role.anonymous.yml
*
* @code
* $this->importConfigs([
* 'user.role.authenticated',
* 'user.role.anonymous',
* ]);
* @endcode
*/
public function importConfigs(array $configs);
/**
* Export configurations.
*
* @param string[] $configs
* Configurations to export.
*/
public function exportConfigs(array $configs);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigImporterServiceInterface:: |
public | function | Export configurations. | 1 |
ConfigImporterServiceInterface:: |
public | function | Get path to directory where configs stored. | 1 |
ConfigImporterServiceInterface:: |
public | function | Import configurations. | 1 |
ConfigImporterServiceInterface:: |
public | function | Set path to directory where configs stored. | 1 |
ContainerInjectionInterface:: |
public static | function | Instantiates a new instance of this class. | 70 |