public function AmpGoogleAdsenseBlock::blockSubmit in Accelerated Mobile Pages (AMP) 8
Same name and namespace in other branches
- 8.2 src/Plugin/Block/AmpGoogleAdsenseBlock.php \Drupal\amp\Plugin\Block\AmpGoogleAdsenseBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ AmpGoogleAdsenseBlock.php, line 88
Class
Namespace
Drupal\amp\Plugin\BlockCode
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'));
}