You are here

public function SearchApiStatsBlock::blockSubmit in Search API Stats 8

Overrides BlockPluginTrait::blockSubmit

File

modules/search_api_stats_block/src/Plugin/Block/SearchApiStatsBlock.php, line 60

Class

SearchApiStatsBlock
Provides a 'SearchApiStatsBlock' block.

Namespace

Drupal\search_api_stats_block\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this
    ->setConfigurationValue('num_phrases', $form_state
    ->getValue('num_phrases'));
  $this
    ->setConfigurationValue('path', $form_state
    ->getValue('path'));
  $this
    ->setConfigurationValue('param_name', $form_state
    ->getValue('param_name'));
}