public function AmpGoogleDoubleClickBlock::blockSubmit in Accelerated Mobile Pages (AMP) 8.3
Same name and namespace in other branches
- 8 src/Plugin/Block/AmpGoogleDoubleClickBlock.php \Drupal\amp\Plugin\Block\AmpGoogleDoubleClickBlock::blockSubmit()
- 8.2 src/Plugin/Block/AmpGoogleDoubleClickBlock.php \Drupal\amp\Plugin\Block\AmpGoogleDoubleClickBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ AmpGoogleDoubleClickBlock.php, line 95
Class
Namespace
Drupal\amp\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this
->setConfigurationValue('google_doubleclick_id', $form_state
->getValue('google_doubleclick_id'));
$this
->setConfigurationValue('width', $form_state
->getValue('width'));
$this
->setConfigurationValue('height', $form_state
->getValue('height'));
$this
->setConfigurationValue('data_slot', $form_state
->getValue('data_slot'));
}