You are here

public function SimplenewsContentSelectionBlock::blockSubmit in Simplenews Content Selection 8

This method processes the blockForm() form fields when the block configuration form is submitted.

The blockValidate() method can be used to validate the form submission.

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/SimplenewsContentSelectionBlock.php, line 67

Class

SimplenewsContentSelectionBlock
Provides a 'Simplenews Content Selection' block.

Namespace

Drupal\simplenews_content_selection\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['simplenews_content_selection_block'] = $form_state
    ->getValue('simplenews_content_selection_block');
}