You are here

function we_megamenu_flush_render_cache in Drupal Mega Menu 8.x

Same name and namespace in other branches
  1. 8 we_megamenu.module \we_megamenu_flush_render_cache()

Function we_megamenu_flush_render_cache.

3 calls to we_megamenu_flush_render_cache()
WeMegaMenuAdminController::resetConfigWeMegaMenu in src/Controller/WeMegaMenuAdminController.php
A function reset menu config.
WeMegaMenuAdminController::saveConfigWeMegaMenu in src/Controller/WeMegaMenuAdminController.php
A function ajax save menu config.
WeMegaMenuAdminController::styleOfBackendWeMegaMenu in src/Controller/WeMegaMenuAdminController.php
A function set style backend.

File

./we_megamenu.module, line 808
Drupal 8 Mega Menu Module.

Code

function we_megamenu_flush_render_cache() {
  $renderCache = \Drupal::service('cache.render');
  $renderCache
    ->invalidateAll();
}