You are here

public function TocJsBlock::blockSubmit in Toc.js 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/TocJsBlock.php \Drupal\toc_js\Plugin\Block\TocJsBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/TocJsBlock.php, line 241

Class

TocJsBlock
Provides a 'SocialSimpleBlock' block.

Namespace

Drupal\toc_js\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['title'] = $form_state
    ->getValue('title');
  $this->configuration['selectors'] = $form_state
    ->getValue('selectors');
  $this->configuration['selectors_minimum'] = $form_state
    ->getValue('selectors_minimum');
  $this->configuration['container'] = $form_state
    ->getValue('container');
  $this->configuration['prefix'] = $form_state
    ->getValue('prefix');
  $this->configuration['list_type'] = $form_state
    ->getValue('list_type');
  $this->configuration['back_to_top'] = $form_state
    ->getValue('back_to_top');
  $this->configuration['back_to_top_label'] = $form_state
    ->getValue('back_to_top_label');
  $this->configuration['smooth_scrolling'] = $form_state
    ->getValue('smooth_scrolling');
  $this->configuration['scroll_to_offset'] = $form_state
    ->getValue('scroll_to_offset');
  $this->configuration['highlight_on_scroll'] = $form_state
    ->getValue('highlight_on_scroll');
  $this->configuration['highlight_offset'] = $form_state
    ->getValue('highlight_offset');
  $this->configuration['sticky'] = $form_state
    ->getValue('sticky');
  $this->configuration['sticky_offset'] = $form_state
    ->getValue('sticky_offset');
  $this->configuration['sticky_stop'] = $form_state
    ->getValue('sticky_stop');
  $this->configuration['sticky_stop_padding'] = $form_state
    ->getValue('sticky_stop_padding');
}