You are here

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

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/AmpSocialShareBlock.php, line 90

Class

AmpSocialShareBlock
Provides an AMP Social Share block

Namespace

Drupal\amp\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this
    ->setConfigurationValue('providers', array_filter($form_state
    ->getValue('providers')));
  $this
    ->setConfigurationValue('app_id', $form_state
    ->getValue('app_id'));
}