constant MenuStorage::MAX_ID_LENGTH in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/src/MenuStorage.php \Drupal\system\MenuStorage::MAX_ID_LENGTH
- 9 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;