You are here

public function DomainNavBlock::blockSubmit in Domain Access 8

Overrides BlockPluginTrait::blockSubmit

File

domain/src/Plugin/Block/DomainNavBlock.php, line 83

Class

DomainNavBlock
Provides a block that links to all active domains.

Namespace

Drupal\domain\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {

  // Process the block's submission handling if no errors occurred only.
  if (!$form_state
    ->getErrors()) {
    foreach (array_keys($this
      ->defaultConfiguration()) as $element) {
      $this->configuration[$element] = $form_state
        ->getValue($element);
    }
  }
}