You are here

public function BlockForm::themeSwitch in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::themeSwitch()
  2. 9 core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::themeSwitch()

Handles switching the available regions based on the selected theme.

File

core/modules/block/src/BlockForm.php, line 200

Class

BlockForm
Provides form for block instance forms.

Namespace

Drupal\block

Code

public function themeSwitch($form, FormStateInterface $form_state) {
  return $form['region'];
}