public function TrumbaBlockBase::blockSubmit in Trumba 2.x
Same name and namespace in other branches
- 8 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 130
Class
- TrumbaBlockBase
- Defines a base block implementation that Trumba blocks plugins will extend.
Namespace
Drupal\trumba\Plugin\BlockCode
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'));
}