constant ConfigEntityStorage::MAX_ID_LENGTH

Length limit of the configuration entity ID.

Most file systems limit a file name's length to 255 characters, so ConfigBase::MAX_NAME_LENGTH restricts the full configuration object name to 250 characters (leaving 5 for the file extension). The config prefix is limited by ConfigEntityType::PREFIX_LENGTH to 83 characters, so this leaves 166 remaining characters for the configuration entity ID, with 1 additional character needed for the joining dot.

See also

\Drupal\Core\Config\ConfigBase::MAX_NAME_LENGTH

\Drupal\Core\Config\Entity\ConfigEntityType::PREFIX_LENGTH

File

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

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

const MAX_ID_LENGTH = 166;

© 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/constant/ConfigEntityStorage::MAX_ID_LENGTH/8.1.x