You are here

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

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

Overrides BlockPluginTrait::blockSubmit

File

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

Class

AmpGoogleDoubleClickBlock

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_slot', $form_state
    ->getValue('data_slot'));
}