You are here

public function CacheflushEntityForm::tabsDescription in CacheFlush 8

Update form tabs with Notes.

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

File

modules/cacheflush_ui/src/Entity/Form/CacheflushEntityForm.php, line 175

Class

CacheflushEntityForm
Form controller for Cacheflush entity edit forms.

Namespace

Drupal\cacheflush_ui\Entity\Form

Code

public function tabsDescription(&$form) {
  $form['cacheflush_form_mani_note'] = [
    '#type' => 'item',
    '#title' => $this
      ->t('Cache sources'),
    '#weight' => 40,
    '#description' => $this
      ->t('Select below the different cache sources you wish to clear when your preset is executed. Don`t be afraid to select them, all these are flushed when you normally clear all the caches. Select only those you need for better performance.'),
  ];
  $form['vertical_tabs_core']['note'] = [
    '#type' => 'item',
    '#title' => $this
      ->t('Note'),
    '#description' => $this
      ->t('Select any of the cache database tables below, to be truncated when this preset is executed.'),
    '#weight' => -10,
  ];
  $form['vertical_tabs_functions']['note'] = [
    '#type' => 'item',
    '#title' => $this
      ->t('Note'),
    '#description' => $this
      ->t('Select any of the below functions to be run when this preset is executed.'),
    '#weight' => -10,
  ];
  $form['vertical_tabs_custom']['note'] = [
    '#type' => 'item',
    '#title' => $this
      ->t('Note'),
    '#description' => $this
      ->t('Select any of the tables defined by contributed modules to be flushed when this preset is executed.'),
    '#weight' => -10,
  ];
  $form['vertical_tabs_often']['note'] = [
    '#type' => 'item',
    '#title' => $this
      ->t('Note'),
    '#description' => $this
      ->t('Some contrib modules have unique ways to store their cache, or to flush them.<br />These require custom configuration, so if you can`t find some of your contrib modules here, please submit us an issue on <a href="@url">http://drupal.org/project/cacheflush/issues/</a><br />
Select any from the list below to clear when this preset is executed.', [
      '@url' => 'http://drupal.org/project/issues/cacheflush/',
    ]),
    '#weight' => -10,
  ];
}