public function MenuTreeStorage::resetDefinitions in Drupal 8
Same name and namespace in other branches
- 9 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\MenuCode
public function resetDefinitions() {
$this->definitions = [];
}