You are here

protected function ConfigEntityStorage::getPrefix in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::getPrefix()
  2. 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::getPrefix()

Returns the prefix used to create the configuration name.

The prefix consists of the config prefix from the entity type plus a dot for separating from the ID.

Return value

string The full configuration prefix, for example 'views.view.'.

6 calls to ConfigEntityStorage::getPrefix()
ConfigEntityStorage::doLoadMultiple in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Performs storage-specific loading of entities.
ConfigEntityStorage::doSave in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Performs storage-specific saving of the entity.
ConfigEntityStorage::has in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Determines if this entity already exists in storage.
ConfigEntityStorage::hasData in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Determines if the storage contains any data.
FieldConfigStorageBase::mapFromStorageRecords in core/lib/Drupal/Core/Field/FieldConfigStorageBase.php
Maps from storage records to entity objects.

... See full list

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 144

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

protected function getPrefix() {
  return $this->entityType
    ->getConfigPrefix() . '.';
}