You are here

function system_admin_menu_cache_info in Administration menu 8.3

Same name and namespace in other branches
  1. 6.3 admin_menu.inc \system_admin_menu_cache_info()
  2. 7.3 admin_menu.inc \system_admin_menu_cache_info()

Implements hook_admin_menu_cache_info() on behalf of System module.

File

./admin_menu.inc, line 814
Menu builder functions for Administration menu.

Code

function system_admin_menu_cache_info() {
  $caches = [
    'assets' => t('CSS and JavaScript'),
    'bootstrap' => t('Bootstrap and configuration'),
    'cache' => t('Page and else'),
    'menu' => t('Menu'),
    'theme' => t('Theme registry'),
  ];
  foreach ($caches as $name => $cache) {
    $caches[$name] = [
      'title' => $cache,
      'callback' => '_admin_menu_flush_cache',
    ];
  }
  return $caches;
}