class DistroStorageTransformEvent in Config Distro 8
Class DistroStorageTransformEvent.
This event allows subscribers to alter the configuration of the storage that is being transformed.
Hierarchy
- class \Drupal\config_distro\Event\DistroStorageTransformEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of DistroStorageTransformEvent
2 files declare their use of DistroStorageTransformEvent
- ConfigDistroFilterEventSubscriber.php in modules/
config_distro_filter/ src/ ConfigDistroFilterEventSubscriber.php - DistroStorageManager.php in src/
DistroStorageManager.php
File
- src/
Event/ DistroStorageTransformEvent.php, line 14
Namespace
Drupal\config_distro\EventView source
class DistroStorageTransformEvent extends Event {
/**
* The configuration storage which is transformed.
*
* This storage can be interacted with by event subscribers and will be
* used instead of the original storage after all event subscribers have been
* called.
*
* @var \Drupal\Core\Config\StorageInterface
*/
protected $storage;
/**
* DistroStorageTransformEvent constructor.
*
* @param \Drupal\Core\Config\StorageInterface $storage
* The storage with the configuration to transform.
*/
public function __construct(StorageInterface $storage) {
$this->storage = $storage;
}
/**
* Returns the mutable storage ready to be read from and written to.
*
* @return \Drupal\Core\Config\StorageInterface
* The config storage.
*/
public function getStorage() {
return $this->storage;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DistroStorageTransformEvent:: |
protected | property | The configuration storage which is transformed. | |
DistroStorageTransformEvent:: |
public | function | Returns the mutable storage ready to be read from and written to. | |
DistroStorageTransformEvent:: |
public | function | DistroStorageTransformEvent constructor. |