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;
doc_Drupal
2016-10-29 08:52:56
Comments
Leave a Comment

Please login to continue.