function BlockForm::themeSwitch

Same name in other branches
  1. 9 core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::themeSwitch()
  2. 8.9.x core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::themeSwitch()
  3. 11.x 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 215

Class

BlockForm
Provides form for block instance forms.

Namespace

Drupal\block

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.