You are here

public function CustomSearchAdBlock::blockSubmit in Google AdSense integration 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/CustomSearchAdBlock.php, line 140

Class

CustomSearchAdBlock
Provides an AdSense Custom Search ad block.

Namespace

Drupal\adsense\Plugin\Block

Code

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