You are here

public function SimpleAdSenseBlock::blockSubmit in Simple AdSense 1.0.x

Same name and namespace in other branches
  1. 8.0 src/Plugin/Block/SimpleAdSenseBlock.php \Drupal\simple_adsense\Plugin\Block\SimpleAdSenseBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/SimpleAdSenseBlock.php, line 38

Class

SimpleAdSenseBlock
Provides a 'SimpleAdSenseBlock' block.

Namespace

Drupal\simple_adsense\Plugin\Block

Code

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