You are here

public function TagcloudsTermsBlock::blockSubmit in TagCloud 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/TagcloudsTermsBlock.php \Drupal\tagclouds\Plugin\Block\TagcloudsTermsBlock::blockSubmit()
  2. 1.0.x src/Plugin/Block/TagcloudsTermsBlock.php \Drupal\tagclouds\Plugin\Block\TagcloudsTermsBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/TagcloudsTermsBlock.php, line 125

Class

TagcloudsTermsBlock
Provides a template for blocks based of each vocabulary.

Namespace

Drupal\tagclouds\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['tags'] = $form_state
    ->getValue('tags');
  $this->configuration['vocabulary'] = $form_state
    ->getValue('vocabulary');
}