You are here

protected function Config::getStorage in Helper 8

Gets the configuration storage.

Parameters

string $entity_type_id: The configuration entity type ID.

Return value

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface Returns the config based on entity type id.

1 call to Config::getStorage()
Config::importFile in src/Config.php
Import a single configuration file.

File

src/Config.php, line 242

Class

Config
Provides helper for working with configuration.

Namespace

Drupal\helper

Code

protected function getStorage($entity_type_id) {
  return $this->configManager
    ->getEntityTypeManager()
    ->getStorage($entity_type_id);
}