MenuTreeStorage::$definitionFields

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::definitionFields

List of plugin definition fields.

@todo Decide how to keep these field definitions in sync. https://www.drupal.org/node/2302085

Type: array

See also

\Drupal\Core\Menu\MenuLinkManager::$defaults

File

core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 86

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

protected $definitionFields = [
    'menu_name',
    'route_name',
    'route_parameters',
    'url',
    'title',
    'description',
    'parent',
    'weight',
    'options',
    'expanded',
    'enabled',
    'provider',
    'metadata',
    'class',
    'form_class',
    'id',
];

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