MenuStorage::MAX_ID_LENGTH
Same name in other branches
- 8.9.x core/modules/system/src/MenuStorage.php \Drupal\system\MenuStorage::MAX_ID_LENGTH
- 10 core/modules/system/src/MenuStorage.php \Drupal\system\MenuStorage::MAX_ID_LENGTH
- 11.x core/modules/system/src/MenuStorage.php \Drupal\system\MenuStorage::MAX_ID_LENGTH
Menu names have a maximum length of 32.
This is based on:
- menu_tree table schema definition,
- \Drupal\Core\Config\Entity\ConfigEntityStorage::MAX_ID_LENGTH
- menu_name base field on the Menu Link content entity.
Overrides ConfigEntityStorage::MAX_ID_LENGTH
See also
\Drupal\Core\Menu\MenuTreeStorage::schemaDefinition()
\Drupal\menu_link_content\Entity\MenuLinkContent::baseFieldDefinitions()
File
-
core/
modules/ system/ src/ MenuStorage.php, line 23
Class
- MenuStorage
- Defines the storage class for menu configuration entities.
Namespace
Drupal\systemCode
const MAX_ID_LENGTH = 32;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.