public function SharerichBlock::blockSubmit in Sharerich 8
Overrides \Drupal\block\BlockBase::blockSubmit().
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ SharerichBlock.php, line 69 - Contains \Drupal\sharerich\Plugin\Block\SharerichBlock.
Class
- SharerichBlock
- Provides a Sharerich block.
Namespace
Drupal\sharerich\Plugin\BlockCode
public function blockSubmit($form, \Drupal\Core\Form\FormStateInterface $form_state) {
$this->configuration['sharerich_set'] = $form_state
->getValue('sharerich_set');
$this->configuration['orientation'] = $form_state
->getValue('orientation');
$this->configuration['sticky'] = $form_state
->getValue('sticky');
}