public function PurgeBlock::blockSubmit in Purge 8.3
Overrides BlockPluginTrait::blockSubmit
File
- modules/
purge_ui/ src/ Plugin/ Block/ PurgeBlock.php, line 130
Class
- PurgeBlock
- Let site administrators purge the current page.
Namespace
Drupal\purge_ui\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->setConfigurationValue('description', $values['description']);
$this
->setConfigurationValue('submit_label', $values['submission']['submit_label']);
$this
->setConfigurationValue('type', $values['submission']['type']);
$this
->setConfigurationValue('execution', $values['submission']['execution']);
}