You are here

protected function ConfigDevelSubscriberBase::getEntityId in Configuration development 8

Parameters

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

string $config_name:

Return value

string

1 call to ConfigDevelSubscriberBase::getEntityId()
ConfigDevelAutoImportSubscriber::importOne in src/EventSubscriber/ConfigDevelAutoImportSubscriber.php

File

src/EventSubscriber/ConfigDevelSubscriberBase.php, line 54

Class

ConfigDevelSubscriberBase

Namespace

Drupal\config_devel\EventSubscriber

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());
}