function BlockDeleteForm::systemRegionList

Same name and namespace in other branches
  1. 11.x core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::systemRegionList()
  2. 10 core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::systemRegionList()
  3. 9 core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::systemRegionList()

Wraps system_region_list().

Deprecated

in drupal:11.4.0 and is removed from drupal:12.0.0. Use $this->themeHandler->getTheme()->listAllRegions() or $this->themeHandler->getTheme()->listVisibleRegions() instead.

See also

https://www.drupal.org/node/3015925

File

core/modules/block/src/Form/BlockDeleteForm.php, line 98

Class

BlockDeleteForm
Provides a deletion confirmation form for the block instance deletion form.

Namespace

Drupal\block\Form

Code

protected function systemRegionList($theme, $show = REGIONS_ALL) {
  @trigger_error(__CLASS__ . '::systemRegionList() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use $this->themeHandler->getTheme()->listAllRegions() or $this->themeHandler->getTheme()->listVisibleRegions() instead. See https://www.drupal.org/node/3015925', E_USER_DEPRECATED);
  return $show === 'all' ? $this->themeHandler
    ->getTheme($theme)
    ->listAllRegions() : $this->themeHandler
    ->getTheme($theme)
    ->listVisibleRegions();
}

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