You are here

public function AddToHomeScreenBlock::blockSubmit in Progressive Web App 8

Overrides BlockPluginTrait::blockSubmit

File

modules/pwa_a2hs/src/Plugin/Block/AddToHomeScreenBlock.php, line 52

Class

AddToHomeScreenBlock
Provides an Add to Home Screen block.

Namespace

Drupal\pwa_a2hs\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['intro_text'] = $form_state
    ->getValue('intro_text');
  $this->configuration['button_text'] = $form_state
    ->getValue('button_text');
}