interface ConfigurableInterface in Backup and Migrate 5.0.x
A configurable object. Manages injection and access to a config object.
@package Drupal\backup_migrate\Core\Config
Hierarchy
- interface \Drupal\backup_migrate\Core\Config\ConfigurableInterface
Expanded class hierarchy of ConfigurableInterface
All classes that implement ConfigurableInterface
4 files declare their use of ConfigurableInterface
- DirectoryDestination.php in src/
Core/ Destination/ DirectoryDestination.php - PluginBase.php in src/
Core/ Plugin/ PluginBase.php - PluginManager.php in src/
Core/ Plugin/ PluginManager.php - StreamDestination.php in src/
Core/ Destination/ StreamDestination.php
File
- src/
Core/ Config/ ConfigurableInterface.php, line 10
Namespace
Drupal\backup_migrate\Core\ConfigView source
interface ConfigurableInterface {
/**
* Set the configuration for all plugins.
*
* @param \Drupal\backup_migrate\Core\Config\ConfigInterface $config
* A configuration object containing only configuration for all plugins.
*/
public function setConfig(ConfigInterface $config);
/**
* Get the configuration object for this item.
*
* @return \Drupal\backup_migrate\Core\Config\ConfigInterface
*/
public function config();
/**
* Get a specific value from the configuration.
*
* @param string $key
* The configuration object key to retrieve.
*
* @return mixed
* The configuration value.
*/
public function confGet($key);
/**
* Get the configuration defaults for this item.
*
* @return mixed
*
* @internal param $key
*/
public function configDefaults();
/**
* Get a default (blank) schema.
*
* @param array $params
* The parameters including:
* - operation - The operation being performed, will be one of:
* - 'backup': Configuration needed during a backup operation
* - 'restore': Configuration needed during a restore
* - 'initialize': Core configuration always needed by this item.
*
* @return array
*/
public function configSchema(array $params = []);
/**
* Get any validation errors in the config.
*
* @param array $params
*
* @return array
*/
public function configErrors(array $params = []);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Get a specific value from the configuration. | |
ConfigurableInterface:: |
public | function | Get the configuration object for this item. | |
ConfigurableInterface:: |
public | function | Get the configuration defaults for this item. | |
ConfigurableInterface:: |
public | function | Get any validation errors in the config. | |
ConfigurableInterface:: |
public | function | Get a default (blank) schema. | |
ConfigurableInterface:: |
public | function | Set the configuration for all plugins. |