You are here

public function TrumbaBlockBase::blockSubmit in Trumba 8

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

Overrides BlockPluginTrait::blockSubmit

3 calls to TrumbaBlockBase::blockSubmit()
TrumbaMainCalendarSpudBlock::blockSubmit in src/Plugin/Block/TrumbaMainCalendarSpudBlock.php
TrumbaOpenSpudBlock::blockSubmit in src/Plugin/Block/TrumbaOpenSpudBlock.php
TrumbaPromoControlSpudBlock::blockSubmit in src/Plugin/Block/TrumbaPromoControlSpudBlock.php
3 methods override TrumbaBlockBase::blockSubmit()
TrumbaMainCalendarSpudBlock::blockSubmit in src/Plugin/Block/TrumbaMainCalendarSpudBlock.php
TrumbaOpenSpudBlock::blockSubmit in src/Plugin/Block/TrumbaOpenSpudBlock.php
TrumbaPromoControlSpudBlock::blockSubmit in src/Plugin/Block/TrumbaPromoControlSpudBlock.php

File

src/Plugin/Block/TrumbaBlockBase.php, line 128

Class

TrumbaBlockBase
Defines a base block implementation that Trumba blocks plugins will extend.

Namespace

Drupal\trumba\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->cacheInvalidator
    ->invalidateTags([
    'trumba:' . $this->spudId,
  ]);
  $this->configuration['trumba_web_name'] = $form_state
    ->getValue('trumba_web_name');
  $this->configuration['trumba_same_page'] = $form_state
    ->getValue('trumba_same_page');
  $this->configuration['trumba_spud_url'] = $this
    ->convertInputToUriString($form_state
    ->getValue('trumba_spud_url'));
}