You are here

public function BlockFieldTestValidationBlock::blockSubmit in Block field 8

Overrides BlockPluginTrait::blockSubmit

File

tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestValidationBlock.php, line 43

Class

BlockFieldTestValidationBlock
Provides a 'Block field test validation' block.

Namespace

Drupal\block_field_test\Plugin\Block

Code

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