You are here

protected function ConfigImporterExporter::getEntityId in Configuration development 8

Parameters

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface $entity_storage:

string $config_name:

Return value

string

File

src/ConfigImporterExporter.php, line 278

Class

ConfigImporterExporter
Imports and exports config.

Namespace

Drupal\config_devel

Code

protected function getEntityId(ConfigEntityStorageInterface $entity_storage, $config_name) {

  // getIDFromConfigName adds a dot but getConfigPrefix has a dot already.
  return $entity_storage::getIDFromConfigName($config_name, $entity_storage
    ->getEntityType()
    ->getConfigPrefix());
}