W3cubDocs

/Drupal 8

protected function ConfigEntityStorage::getPrefix

protected 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.'.

File

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

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityStorage.php/function/ConfigEntityStorage::getPrefix/8.1.x