class SchemaStorage

Defines the file storage controller for metadata files.

Hierarchy

Expanded class hierarchy of SchemaStorage

1 string reference to 'SchemaStorage'
core.services.yml in drupal/core/core.services.yml
drupal/core/core.services.yml

File

drupal/core/lib/Drupal/Core/Config/Schema/SchemaStorage.php, line 16
Contains \Drupal\Core\Config\Schema\SchemaStorage.

Namespace

Drupal\Core\Config\Schema
View source
class SchemaStorage extends InstallStorage {

  /**
   * Implements \Drupal\Core\Config\StorageInterface::exists().
   */
  public function exists($name) {
    return array_key_exists($name, $this
      ->getAllFolders());
  }

  /**
   * Overrides \Drupal\Core\Config\InstallStorage::getComponentFolder().
   */
  protected function getComponentFolder($type, $name) {
    return drupal_get_path($type, $name) . '/config/schema';
  }

  /**
   * Overrides \Drupal\Core\Config\InstallStorage::write().
   *
   * @throws \Drupal\Core\Config\StorageException
   */
  public function write($name, array $data) {
    throw new StorageException('Write operation is not allowed for config schema storage.');
  }

  /**
   * Overrides \Drupal\Core\Config\InstallStorage::delete().
   *
   * @throws \Drupal\Core\Config\StorageException
   */
  public function delete($name) {
    throw new StorageException('Delete operation is not allowed for config schema storage.');
  }

  /**
   * Overrides \Drupal\Core\Config\InstallStorage::rename().
   *
   * @throws \Drupal\Core\Config\StorageException
   */
  public function rename($name, $new_name) {
    throw new StorageException('Rename operation is not allowed for config schema storage.');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FileStorage::$directory protected property The filesystem path for configuration objects.
FileStorage::$dumper protected property A shared YAML dumper instance.
FileStorage::$parser protected property A shared YAML parser instance.
FileStorage::decode public function Implements Drupal\Core\Config\StorageInterface::decode(). Overrides StorageInterface::decode
FileStorage::encode public function Implements Drupal\Core\Config\StorageInterface::encode(). Overrides StorageInterface::encode
FileStorage::getDumper protected function Gets the YAML dumper instance.
FileStorage::getFileExtension public static function Returns the file extension used by the file storage for all configuration files.
FileStorage::getParser protected function Gets the YAML parser instance.
FileStorage::read public function Implements Drupal\Core\Config\StorageInterface::read(). Overrides StorageInterface::read
InstallStorage::$folders protected property Folder map indexed by configuration name.
InstallStorage::deleteAll public function Overrides Drupal\Core\Config\FileStorage::deleteAll(). Overrides FileStorage::deleteAll
InstallStorage::getAllFolders protected function Returns a map of all config object names and their folders.
InstallStorage::getComponentNames public function Get all configuration names and folders for a list of modules or themes.
InstallStorage::getFilePath public function Overrides Drupal\Core\Config\FileStorage::getFilePath(). Overrides FileStorage::getFilePath
InstallStorage::listAll public function Implements Drupal\Core\Config\StorageInterface::listAll(). Overrides FileStorage::listAll
InstallStorage::__construct public function Overrides Drupal\Core\Config\FileStorage::__construct(). Overrides FileStorage::__construct
SchemaStorage::delete public function Overrides \Drupal\Core\Config\InstallStorage::delete(). Overrides InstallStorage::delete
SchemaStorage::exists public function Implements \Drupal\Core\Config\StorageInterface::exists(). Overrides FileStorage::exists
SchemaStorage::getComponentFolder protected function Overrides \Drupal\Core\Config\InstallStorage::getComponentFolder(). Overrides InstallStorage::getComponentFolder
SchemaStorage::rename public function Overrides \Drupal\Core\Config\InstallStorage::rename(). Overrides InstallStorage::rename
SchemaStorage::write public function Overrides \Drupal\Core\Config\InstallStorage::write(). Overrides InstallStorage::write