You are here

public function ContentItemBlock::blockSubmit in Panopoly Widgets 8.2

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/ContentItemBlock.php, line 195

Class

ContentItemBlock
Block that displays a node.

Namespace

Drupal\panopoly_widgets\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['nid'] = $form_state
    ->getValue('node');
  $this->configuration['view_mode'] = $form_state
    ->getValue('view_mode');
}