public function TBMegaMenuBlock::buildConfigurationForm in The Better Mega Menu 8
Same name and namespace in other branches
- 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\BlockCode
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;
}