You are here

public function FacetsBlock::blockSubmit in Facets Block 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/FacetsBlock.php, line 191

Class

FacetsBlock
Provides a 'Facets Block' block.

Namespace

Drupal\facets_block\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['show_title'] = $form_state
    ->getValue([
    'block_settings',
    'show_title',
  ]);
  $this->configuration['exclude_empty_facets'] = $form_state
    ->getValue([
    'block_settings',
    'exclude_empty_facets',
  ]);
  $this->configuration['hide_empty_block'] = $form_state
    ->getValue([
    'block_settings',
    'hide_empty_block',
  ]);
  $this->configuration['facets_to_include'] = $form_state
    ->getValue([
    'block_settings',
    'facets_to_include',
  ]);
  $this->configuration['add_js_classes'] = $form_state
    ->getValue([
    'block_settings',
    'add_js_classes',
  ]);
}