You are here

protected function ConfigEntityStorage::getPrefix in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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.'.

3 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.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 156
Contains \Drupal\Core\Config\Entity\ConfigEntityStorage.

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

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