Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal