You are here

public function BookNavigationBlock::blockSubmit in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::blockSubmit()
  2. 9 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::blockSubmit()

File

core/modules/book/src/Plugin/Block/BookNavigationBlock.php, line 116

Class

BookNavigationBlock
Provides a 'Book navigation' block.

Namespace

Drupal\book\Plugin\Block

Code

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