function Theme::getDefaultRegion
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Extension/Theme.php \Drupal\Core\Extension\Theme::getDefaultRegion()
Gets the name of the default region for the theme.
Return value
string The machine name of the default region.
File
-
core/
lib/ Drupal/ Core/ Extension/ Theme.php, line 74
Class
- Theme
- The Theme extension object.
Namespace
Drupal\Core\ExtensionCode
public function getDefaultRegion() : string {
return (string) key($this->listVisibleRegions());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.