public function NodeFormBlock::blockSubmit in Form Block 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Block/NodeFormBlock.php \Drupal\formblock\Plugin\Block\NodeFormBlock::blockSubmit()
Overrides \Drupal\block\BlockBase::blockSubmit().
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ NodeFormBlock.php, line 128
Class
- NodeFormBlock
- Provides a block for node forms.
Namespace
Drupal\formblock\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['type'] = $form_state
->getValue('formblock_node_type');
$this->configuration['show_help'] = $form_state
->getValue('formblock_show_help');
}