You are here

function cacheflush_ui_cacheflush_ui_tabs in CacheFlush 8

Same name and namespace in other branches
  1. 7.3 modules/cacheflush_ui/cacheflush_ui.module \cacheflush_ui_cacheflush_ui_tabs()

Implements hook_cacheflush_ui_tabs().

1 call to cacheflush_ui_cacheflush_ui_tabs()
CacheflushEntityForm::presetForm in modules/cacheflush_ui/src/Entity/Form/CacheflushEntityForm.php

File

modules/cacheflush_ui/cacheflush_ui.module, line 52
Cacheflush User Interface.

Code

function cacheflush_ui_cacheflush_ui_tabs() {
  $tabs = [
    'vertical_tabs_core' => [
      'name' => t('Core cache tables'),
      'validation' => 'cacheflush_ui_tab_validation',
      'weight' => -100,
    ],
    'vertical_tabs_functions' => [
      'name' => t('Other core cache options'),
      'validation' => 'cacheflush_ui_tab_validation',
      'weight' => -90,
    ],
    'vertical_tabs_custom' => [
      'name' => t('Contrib cache tables'),
      'validation' => 'cacheflush_ui_tab_validation',
      'weight' => -80,
    ],
    'vertical_tabs_often' => [
      'name' => t('Other contrib cache options'),
      'validation' => 'cacheflush_ui_tab_validation',
      'weight' => -70,
    ],
  ];
  return $tabs;
}