You are here

public function MenuTokenContextManager::clear in Menu Token 9.1.x

Same name and namespace in other branches
  1. 8 src/Service/MenuTokenContextManager.php \Drupal\menu_token\Service\MenuTokenContextManager::clear()

Reset menu_token_links_contextual_replacements.

File

src/Service/MenuTokenContextManager.php, line 101

Class

MenuTokenContextManager
Menu token context manager service.

Namespace

Drupal\menu_token\Service

Code

public function clear() {
  $this->contextualReplacementLinks = [];
  $this->state
    ->set('menu_token_links_contextual_replacements', serialize($this->contextualReplacementLinks));
}