REGIONS_VISIBLE

Same name and namespace in other branches
  1. 11.x core/modules/system/system.module \REGIONS_VISIBLE
  2. 10 core/modules/system/system.module \REGIONS_VISIBLE
  3. 9 core/modules/system/system.module \REGIONS_VISIBLE
  4. 8.9.x core/modules/system/system.module \REGIONS_VISIBLE
  5. 7.x modules/system/system.module \REGIONS_VISIBLE

Return only visible regions.

Deprecated

in drupal:11.4.0 and is removed from drupal:13.0.0. Instead, use \Drupal\Core\Extension\Theme::listVisibleRegions().

See also

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

2 uses of REGIONS_VISIBLE
system_region_list in core/modules/system/system.module
Get a list of available regions from a specified theme.
ThemeRegionTest::testLegacyRegionListing in core/tests/Drupal/KernelTests/Core/Theme/ThemeRegionTest.php
Tests listing a theme's regions using legacy functions.

File

core/modules/system/system.module, line 51

Code

const REGIONS_VISIBLE = 'visible';

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