You are here

public function SiteAlertBlock::submitConfigurationForm in Site Alert 8

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/SiteAlertBlock.php, line 196

Class

SiteAlertBlock
Implements SiteAlertBlock class.

Namespace

Drupal\site_alert\Plugin\Block

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  parent::submitConfigurationForm($form, $form_state);
  $this
    ->setConfigurationValue('timeout', $form_state
    ->getValue('timeout'));
}