Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 6 |
ConfigImporterEvent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 6 |
__construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
getConfigImporter | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
getChangelist | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Config\ConfigImporterEvent. | |
*/ | |
namespace Drupal\Core\Config; | |
use Symfony\Component\EventDispatcher\Event; | |
class ConfigImporterEvent extends Event { | |
/** | |
* Configuration import object. | |
* | |
* @var \Drupal\Core\Config\ConfigImporter | |
*/ | |
protected $configImporter; | |
/** | |
* Constructs ConfigImporterEvent. | |
* | |
* @param \Drupal\Core\Config\ConfigImporter $config_importer | |
* A config import object to notify listeners about. | |
*/ | |
public function __construct(ConfigImporter $config_importer) { | |
$this->configImporter = $config_importer; | |
} | |
/** | |
* Gets the config import object. | |
* | |
* @return \Drupal\Core\Config\ConfigImporter | |
* The ConfigImporter object. | |
*/ | |
public function getConfigImporter() { | |
return $this->configImporter; | |
} | |
/** | |
* Gets the list of changes that will be imported. | |
* | |
* @param string $op | |
* (optional) A change operation. Either delete, create or update. If | |
* supplied the returned list will be limited to this operation. | |
* @param string $collection | |
* (optional) The collection to get the changelist for. Defaults to the | |
* default collection. | |
* | |
* @return array | |
* An array of config changes that are yet to be imported. | |
* | |
* @see \Drupal\Core\Config\StorageComparerInterface::getChangelist() | |
*/ | |
public function getChangelist($op = NULL, $collection = StorageInterface::DEFAULT_COLLECTION) { | |
return $this->configImporter->getStorageComparer()->getChangelist($op, $collection); | |
} | |
} |