function ConfigEntityStorage::getPrefix

Same name and namespace in other branches
  1. 11.x 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()
  3. 8.9.x 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.'.

1 call to ConfigEntityStorage::getPrefix()
FieldStorageConfigStorage::mapFromStorageRecords in core/modules/field/src/FieldStorageConfigStorage.php
Maps from storage records to entity objects.

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.