function MenuTreeStorage::definitionFields

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::definitionFields()
  2. 8.9.x core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::definitionFields()
  3. 11.x core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::definitionFields()

Determines fields that are part of the plugin definition.

Return value

string[] The list of the subset of fields that are part of the plugin definition.

5 calls to MenuTreeStorage::definitionFields()
MenuTreeStorage::loadByProperties in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
MenuTreeStorage::loadByRoute in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
MenuTreeStorage::loadLinks in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Loads links in the given menu, according to the given tree parameters.
MenuTreeStorage::loadMultiple in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
MenuTreeStorage::prepareLink in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Prepares a link by unserializing values and saving the definition.

File

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

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

protected function definitionFields() {
    return array_keys($this->defaults);
}

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