public function ActiveTheme::getRegions

public 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 205

Class

ActiveTheme
Defines a theme and its information needed at runtime.

Namespace

Drupal\Core\Theme

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Theme!ActiveTheme.php/function/ActiveTheme::getRegions/8.1.x