function Theme::listVisibleRegions
Same name and namespace in other branches
- main core/lib/Drupal/Core/Extension/Theme.php \Drupal\Core\Extension\Theme::listVisibleRegions()
Lists all the theme's visible regions.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup[] An array of human-readable region names keyed by machine names.
File
-
core/
lib/ Drupal/ Core/ Extension/ Theme.php, line 60
Class
- Theme
- The Theme extension object.
Namespace
Drupal\Core\ExtensionCode
public function listVisibleRegions() : array {
// List only regions that do not appear in the 'regions_hidden' key.
return array_diff_key($this->listAllRegions(), array_flip($this->info['regions_hidden']));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.