class TestInstallStorage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage
Tests configuration of profiles, modules and themes.
A test configuration storage to read configuration from all profiles, modules and themes regardless of installation status or installed profile.
Hierarchy
- class \Drupal\Core\Config\FileStorage implements StorageInterface
- class \Drupal\Core\Config\InstallStorage
- class \Drupal\config_test\TestInstallStorage
- class \Drupal\Core\Config\InstallStorage
Expanded class hierarchy of TestInstallStorage
2 files declare their use of TestInstallStorage
- DefaultConfigTest.php in core/
modules/ config/ src/ Tests/ DefaultConfigTest.php - Contains \Drupal\config\Tests\DefaultConfigTest.
- TestViewsTest.php in core/
modules/ views/ src/ Tests/ TestViewsTest.php - Contains \Drupal\views\Tests\TestViewsTest.
File
- core/
modules/ config/ tests/ config_test/ src/ TestInstallStorage.php, line 19 - Contains \Drupal\config_test\TestInstallStorage.
Namespace
Drupal\config_testView source
class TestInstallStorage extends InstallStorage {
/**
* {@inheritdoc}
*/
protected function getAllFolders() {
if (!isset($this->folders)) {
$this->folders = $this
->getCoreNames();
$listing = new ExtensionDiscovery(\Drupal::root());
$listing
->setProfileDirectories(array());
$this->folders += $this
->getComponentNames($listing
->scan('profile'));
$this->folders += $this
->getComponentNames($listing
->scan('module'));
$this->folders += $this
->getComponentNames($listing
->scan('theme'));
}
return $this->folders;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileStorage:: |
protected | property | The storage collection. | |
FileStorage:: |
public | function |
Creates a collection on the storage. Overrides StorageInterface:: |
1 |
FileStorage:: |
public | function |
Decodes configuration data from the storage-specific format. Overrides StorageInterface:: |
|
FileStorage:: |
public | function |
Encodes configuration data into the storage-specific format. Overrides StorageInterface:: |
|
FileStorage:: |
protected | function | Check if the directory exists and create it if not. | |
FileStorage:: |
public | function |
Gets the existing collections. Overrides StorageInterface:: |
|
FileStorage:: |
protected | function | Helper function for getAllCollectionNames(). | |
FileStorage:: |
protected | function | Gets the directory for the collection. | |
FileStorage:: |
public | function |
Gets the name of the current collection the storage is using. Overrides StorageInterface:: |
|
FileStorage:: |
public static | function | Returns the file extension used by the file storage for all configuration files. | |
FileStorage:: |
public | function |
Implements Drupal\Core\Config\StorageInterface::read(). Overrides StorageInterface:: |
|
FileStorage:: |
public | function |
Reads configuration data from the storage. Overrides StorageInterface:: |
|
InstallStorage:: |
protected | property |
The directory to scan in each extension to scan for files. Overrides FileStorage:: |
|
InstallStorage:: |
protected | property | Folder map indexed by configuration name. | |
InstallStorage:: |
constant | Extension sub-directory containing default configuration for installation. | ||
InstallStorage:: |
constant | Extension sub-directory containing optional configuration for installation. | ||
InstallStorage:: |
constant | Extension sub-directory containing configuration schema. | ||
InstallStorage:: |
public | function |
Overrides Drupal\Core\Config\FileStorage::delete(). Overrides FileStorage:: |
|
InstallStorage:: |
public | function |
Overrides Drupal\Core\Config\FileStorage::deleteAll(). Overrides FileStorage:: |
|
InstallStorage:: |
public | function |
Returns whether a configuration object exists. Overrides FileStorage:: |
|
InstallStorage:: |
protected | function | Get folder inside each component that contains the files. | |
InstallStorage:: |
public | function | Get all configuration names and folders for a list of modules or themes. | |
InstallStorage:: |
protected | function | Get folder inside Drupal core that contains the files. | |
InstallStorage:: |
public | function | Get all configuration names and folders for Drupal core. | |
InstallStorage:: |
public | function |
Overrides Drupal\Core\Config\FileStorage::getFilePath(). Overrides FileStorage:: |
|
InstallStorage:: |
public | function |
Gets configuration object names starting with a given prefix. Overrides FileStorage:: |
|
InstallStorage:: |
public | function |
Overrides Drupal\Core\Config\FileStorage::rename(). Overrides FileStorage:: |
|
InstallStorage:: |
public | function | Resets the static cache. | |
InstallStorage:: |
public | function |
Overrides Drupal\Core\Config\FileStorage::write(). Overrides FileStorage:: |
|
InstallStorage:: |
public | function |
Constructs an InstallStorage object. Overrides FileStorage:: |
1 |
StorageInterface:: |
constant | The default collection name. | ||
TestInstallStorage:: |
protected | function |
Returns a map of all config object names and their folders. Overrides InstallStorage:: |