You are here

public function AmpGoogleAdsenseBlock::blockSubmit in Accelerated Mobile Pages (AMP) 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Block/AmpGoogleAdsenseBlock.php \Drupal\amp\Plugin\Block\AmpGoogleAdsenseBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/AmpGoogleAdsenseBlock.php, line 88

Class

AmpGoogleAdsenseBlock

Namespace

Drupal\amp\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this
    ->setConfigurationValue('width', $form_state
    ->getValue('width'));
  $this
    ->setConfigurationValue('height', $form_state
    ->getValue('height'));
  $this
    ->setConfigurationValue('data_ad_slot', $form_state
    ->getValue('data_ad_slot'));
}