You are here

public function TrumbaPromoControlSpudBlock::blockSubmit in Trumba 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/Block/TrumbaPromoControlSpudBlock.php \Drupal\trumba\Plugin\Block\TrumbaPromoControlSpudBlock::blockSubmit()

Overrides TrumbaBlockBase::blockSubmit

File

src/Plugin/Block/TrumbaPromoControlSpudBlock.php, line 59

Class

TrumbaPromoControlSpudBlock
Provides a 'TrumbaPromoControlSpudBlock' block.

Namespace

Drupal\trumba\Plugin\Block

Code

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