public function QuickNodeBlock::blockSubmit in Quick Node Block 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ QuickNodeBlock.php, line 224
Class
- QuickNodeBlock
- Provides a Node Block with his display.
Namespace
Drupal\quick_node_block\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
parent::blockSubmit($form, $form_state);
$values = $form_state
->getValues();
// @todo: Don't save the node as a string (title + nid) but rather as nid.
$this->configuration['quick_node'] = $values['quick_node'];
$this->configuration['quick_display'] = $values['quick_display'];
}