class ConfigMergeEvent in Config Merge 8
Class ConfigMergeEvent
@package Drupal\config_merge\Event
Hierarchy
- class \Drupal\config_merge\Event\ConfigMergeEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of ConfigMergeEvent
File
- src/
Event/ ConfigMergeEvent.php, line 12
Namespace
Drupal\config_merge\EventView source
class ConfigMergeEvent extends Event {
/**
* Config name that is being processed.
*
* @var string
*/
protected $configName;
/**
* Array of logs keyed by operation name.
*
* @var array
*/
protected $logs;
/**
* Config provider type.
*
* @var string
*/
protected $providerType;
/**
* Config provider name.
*
* @var string
*/
protected $providerName;
/**
* ConfigMergeEvent constructor.
*
* @param $config_name
* The name of the configuration object being changed.
* @param $logs
* The logs array of merged or unmerged properties with the reason.
* @param string $provider_type
* The type of the configuration provider.
* @param string $provider_name
* The name of the configuration provider.
*/
public function __construct($config_name, $logs, $provider_type = '', $provider_name = '') {
$this->configName = $config_name;
$this->logs = $logs;
$this->providerType = $provider_type;
$this->providerName = $provider_name;
}
/**
* Gets the name of the configuration object that was in process.
*
* @return string
*/
public function getConfigName() {
return $this->configName;
}
/**
* Gets the logs array of the merge process.
*
* @return array
*/
public function getLogs() {
return $this->logs;
}
/**
* Gets the config provider type.
*
* @return string
*/
public function getProviderType() {
return $this->providerType;
}
/**
* Gets the config provider name.
*
* @return string
*/
public function getProviderName() {
return $this->providerName;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigMergeEvent:: |
protected | property | Config name that is being processed. | |
ConfigMergeEvent:: |
protected | property | Array of logs keyed by operation name. | |
ConfigMergeEvent:: |
protected | property | Config provider name. | |
ConfigMergeEvent:: |
protected | property | Config provider type. | |
ConfigMergeEvent:: |
public | function | Gets the name of the configuration object that was in process. | |
ConfigMergeEvent:: |
public | function | Gets the logs array of the merge process. | |
ConfigMergeEvent:: |
public | function | Gets the config provider name. | |
ConfigMergeEvent:: |
public | function | Gets the config provider type. | |
ConfigMergeEvent:: |
public | function | ConfigMergeEvent constructor. |