public function AmpGoogleDoubleClickBlock::blockSubmit in Accelerated Mobile Pages (AMP) 8
Same name and namespace in other branches
- 8.3 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 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_slot', $form_state
->getValue('data_slot'));
}