You are here

public function NodeFormBlock::blockSubmit in Form Block 2.0.x

Same name and namespace in other branches
  1. 8 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 169

Class

NodeFormBlock
Provides a block for node forms.

Namespace

Drupal\formblock\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['type'] = $form_state
    ->getValue('formblock_node_type');
  $this->configuration['form_mode'] = $form_state
    ->getValue('formblock_node_form_mode');
  $this->configuration['show_help'] = $form_state
    ->getValue('formblock_show_help');
}