public function CheeseburgerMenuTrigger::submitConfigurationForm in Cheeseburger Menu 5.0.x
Most block plugins should not override this method. To add submission handling for a specific block type, override BlockBase::blockSubmit().
Overrides BlockPluginTrait::submitConfigurationForm
See also
\Drupal\Core\Block\BlockBase::blockSubmit()
File
- src/
Plugin/ Block/ CheeseburgerMenuTrigger.php, line 158
Class
- CheeseburgerMenuTrigger
- Provides a 'CheeseburgerMenu' block.
Namespace
Drupal\cheeseburger_menu\Plugin\BlockCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['block_to_trigger'] = $form_state
->getValue('block_to_trigger');
$this->configuration['breakpoints'] = array_filter($form_state
->getValue('breakpoints'));
$this->configuration['custom_media_query'] = !$form_state
->isValueEmpty('custom_media_query') ? $form_state
->getValue('custom_media_query') : NULL;
parent::submitConfigurationForm($form, $form_state);
}