You are here

public function OpenReadspeakerBlock::blockSubmit in Open ReadSpeaker 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/OpenReadspeakerBlock.php, line 101

Class

OpenReadspeakerBlock
Provides a 'OpenReadspeakerBlock' block.

Namespace

Drupal\open_readspeaker\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['open_readspeaker_buttonstyle'] = $form_state
    ->getValue('open_readspeaker_buttonstyle');
  $this->configuration['open_readspeaker_buttontext'] = $form_state
    ->getValue('open_readspeaker_buttontext');
  $this->configuration['open_readspeaker_buttontitle'] = $form_state
    ->getValue('open_readspeaker_buttontitle');
  $this->configuration['open_readspeaker_reading_area'] = $form_state
    ->getValue('open_readspeaker_reading_area');
  $this->configuration['open_readspeaker_reading_area_class'] = $form_state
    ->getValue('open_readspeaker_reading_area_class');
}