function ConfigEntityStorage::getPrefix

Same name in other branches
  1. 9 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. 11.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.'.

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 155

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.