You are here

public function SuperfishBlock::blockSubmit in Superfish 8

Overrides \Drupal\block\BlockBase::blockSubmit().

Overrides SystemMenuBlock::blockSubmit

File

src/Plugin/Block/SuperfishBlock.php, line 877

Class

SuperfishBlock
Provides a "Superfish" block.

Namespace

Drupal\superfish\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['level'] = $form_state
    ->getValue('level');
  $this->configuration['depth'] = $form_state
    ->getValue('depth');
  $this->configuration['menu_type'] = $form_state
    ->getValue([
    'sf',
    'superfish_type',
  ]);
  $this->configuration['style'] = $form_state
    ->getValue([
    'sf',
    'superfish_style',
  ]);
  $this->configuration['arrow'] = $form_state
    ->getValue([
    'sf',
    'superfish_arrow',
  ]);
  $this->configuration['shadow'] = $form_state
    ->getValue([
    'sf',
    'superfish_shadow',
  ]);
  $this->configuration['slide'] = $form_state
    ->getValue([
    'sf',
    'superfish_slide',
  ]);
  $this->configuration['supposition'] = $form_state
    ->getValue([
    'sf-plugins',
    'superfish_supposition',
  ]);
  $this->configuration['hoverintent'] = $form_state
    ->getValue([
    'sf-plugins',
    'superfish_hoverintent',
  ]);
  $this->configuration['touch'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-touchscreen',
    'superfish_touch',
  ]);
  $this->configuration['touchbh'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-touchscreen',
    'superfish_touchbh',
  ]);
  $this->configuration['touchbp'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-touchscreen',
    'sf-touchscreen-windowwidth',
    'superfish_touchbp',
  ]);
  $this->configuration['touchua'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-touchscreen',
    'sf-touchscreen-useragent',
    'superfish_touchua',
  ]);
  $this->configuration['touchual'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-touchscreen',
    'sf-touchscreen-useragent',
    'superfish_touchual',
  ]);
  $this->configuration['touchuam'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-touchscreen',
    'sf-touchscreen-useragent',
    'superfish_touchuam',
  ]);
  $this->configuration['small'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'superfish_small',
  ]);
  $this->configuration['smallact'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'superfish_smallact',
  ]);
  $this->configuration['smallbp'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-windowwidth',
    'superfish_smallbp',
  ]);
  $this->configuration['smallua'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-useragent',
    'superfish_smallua',
  ]);
  $this->configuration['smallual'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-useragent',
    'superfish_smallual',
  ]);
  $this->configuration['smalluam'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-useragent',
    'superfish_smalluam',
  ]);
  $this->configuration['smallset'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-select',
    'superfish_smallset',
  ]);
  $this->configuration['smallasa'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-select',
    'superfish_smallasa',
  ]);
  $this->configuration['smallcmc'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-select',
    'sf-smallscreen-select-more',
    'superfish_smallcmc',
  ]);
  $this->configuration['smallecm'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-select',
    'sf-smallscreen-select-more',
    'superfish_smallecm',
  ]);
  $this->configuration['smallchc'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-select',
    'sf-smallscreen-select-more',
    'superfish_smallchc',
  ]);
  $this->configuration['smallech'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-select',
    'sf-smallscreen-select-more',
    'superfish_smallech',
  ]);
  $this->configuration['smallicm'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-select',
    'sf-smallscreen-select-more',
    'superfish_smallicm',
  ]);
  $this->configuration['smallich'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-select',
    'sf-smallscreen-select-more',
    'superfish_smallich',
  ]);
  $this->configuration['smallamt'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-accordion',
    'superfish_smallamt',
  ]);
  $this->configuration['smallabt'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-smallscreen',
    'sf-smallscreen-accordion',
    'superfish_smallabt',
  ]);
  $this->configuration['supersubs'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-supersubs',
    'superfish_supersubs',
  ]);
  $this->configuration['minwidth'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-supersubs',
    'superfish_minwidth',
  ]);
  $this->configuration['maxwidth'] = $form_state
    ->getValue([
    'sf-plugins',
    'sf-supersubs',
    'superfish_maxwidth',
  ]);
  $this->configuration['multicolumn'] = $form_state
    ->getValue([
    'sf-multicolumn',
    'superfish_multicolumn',
  ]);
  $this->configuration['multicolumn_depth'] = $form_state
    ->getValue([
    'sf-multicolumn',
    'superfish_multicolumn_depth',
  ]);
  $this->configuration['multicolumn_levels'] = $form_state
    ->getValue([
    'sf-multicolumn',
    'superfish_multicolumn_levels',
  ]);
  $this->configuration['speed'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-settings',
    'superfish_speed',
  ]);
  $this->configuration['delay'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-settings',
    'superfish_delay',
  ]);
  $this->configuration['pathlevels'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-settings',
    'superfish_pathlevels',
  ]);
  $this->configuration['expanded'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-hyperlinks',
    'superfish_expanded',
  ]);
  $this->configuration['clone_parent'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-hyperlinks',
    'superfish_clone_parent',
  ]);
  $this->configuration['hide_linkdescription'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-hyperlinks',
    'superfish_hide_linkdescription',
  ]);
  $this->configuration['add_linkdescription'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-hyperlinks',
    'superfish_add_linkdescription',
  ]);
  $this->configuration['link_depth_class'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-hyperlinks',
    'superfish_itemdepth',
  ]);
  $this->configuration['custom_list_class'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-custom-classes',
    'superfish_ulclass',
  ]);
  $this->configuration['custom_item_class'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-custom-classes',
    'superfish_liclass',
  ]);
  $this->configuration['custom_link_class'] = $form_state
    ->getValue([
    'sf-advanced',
    'sf-custom-classes',
    'superfish_hlclass',
  ]);
}