You are here

public function MenuTreeStorage::resetDefinitions in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::resetDefinitions()

Clears all definitions cached in memory.

Overrides MenuTreeStorageInterface::resetDefinitions

3 calls to MenuTreeStorage::resetDefinitions()
MenuTreeStorage::delete in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Deletes a menu link definition from the storage.
MenuTreeStorage::rebuild in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Rebuilds the stored menu link definitions.
MenuTreeStorage::save in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Saves a plugin definition to the storage.

File

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

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

public function resetDefinitions() {
  $this->definitions = [];
}