You are here

public function TBMegaMenuBlock::buildConfigurationForm in The Better Mega Menu 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Block/TBMegaMenuBlock.php \Drupal\tb_megamenu\Plugin\Block\TBMegaMenuBlock::buildConfigurationForm()

Default cache is disabled.

Parameters

array $form: The form definition.

\Drupal\Core\Form\FormStateInterface $form_state: The form state information.

Return value

array The configuration render array

Overrides BlockPluginTrait::buildConfigurationForm

File

src/Plugin/Block/TBMegaMenuBlock.php, line 109

Class

TBMegaMenuBlock
Provides blocks which belong to TB Mega Menu.

Namespace

Drupal\tb_megamenu\Plugin\Block

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $rebuild_form = parent::buildConfigurationForm($form, $form_state);
  $rebuild_form['cache']['max_age']['#default_value'] = 0;
  return $rebuild_form;
}