MenuStorage.php

Same filename in other branches
  1. 9 core/modules/system/src/MenuStorage.php
  2. 10 core/modules/system/src/MenuStorage.php
  3. 11.x core/modules/system/src/MenuStorage.php

Namespace

Drupal\system

File

core/modules/system/src/MenuStorage.php

View source
<?php

namespace Drupal\system;

use Drupal\Core\Config\Entity\ConfigEntityStorage;

/**
 * Defines the storage class for menu configuration entities.
 */
class MenuStorage extends ConfigEntityStorage {
    
    /**
     * 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.
     *
     * @see \Drupal\Core\Menu\MenuTreeStorage::schemaDefinition()
     * @see \Drupal\menu_link_content\Entity\MenuLinkContent::baseFieldDefinitions()
     */
    const MAX_ID_LENGTH = 32;

}

Classes

Title Deprecated Summary
MenuStorage Defines the storage class for menu configuration entities.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.