You are here

public function FieldMenuBlock::blockSubmit in Menu item content fields 8

Overrides SystemMenuBlock::blockSubmit

File

src/Plugin/Block/FieldMenuBlock.php, line 80

Class

FieldMenuBlock
Provides a drupal menu that uses display view modes.

Namespace

Drupal\menu_item_fields\Plugin\Block

Code

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