You are here

public function AmpSystemBrandingBlock::blockSubmit in Accelerated Mobile Pages (AMP) 8.3

Overrides SystemBrandingBlock::blockSubmit

File

src/Plugin/Block/AmpSystemBrandingBlock.php, line 54

Class

AmpSystemBrandingBlock
Provides a block to display 'Site branding' elements.

Namespace

Drupal\amp\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  parent::blockSubmit($form, $form_state);
  $block_branding = $form_state
    ->getValue('block_branding');
  $this->configuration['logo_width'] = $block_branding['logo_width'];
  $this->configuration['logo_height'] = $block_branding['logo_height'];
}