function ActiveTheme::getRegions

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Theme/ActiveTheme.php \Drupal\Core\Theme\ActiveTheme::getRegions()
  2. 10 core/lib/Drupal/Core/Theme/ActiveTheme.php \Drupal\Core\Theme\ActiveTheme::getRegions()
  3. 11.x core/lib/Drupal/Core/Theme/ActiveTheme.php \Drupal\Core\Theme\ActiveTheme::getRegions()

The regions used by the theme.

Return value

string[] The list of region machine names supported by the theme.

See also

system_region_list()

File

core/lib/Drupal/Core/Theme/ActiveTheme.php, line 241

Class

ActiveTheme
Defines a theme and its information needed at runtime.

Namespace

Drupal\Core\Theme

Code

public function getRegions() {
    return array_keys($this->regions);
}

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