function PlaceBlockPageVariant::getVisibleRegionNames
Returns the human-readable list of regions keyed by machine name.
Parameters
string $theme: The name of the theme.
Return value
array An array of human-readable region names keyed by machine name.
1 call to PlaceBlockPageVariant::getVisibleRegionNames()
- PlaceBlockPageVariant::build in core/
modules/ block_place/ src/ Plugin/ DisplayVariant/ PlaceBlockPageVariant.php - Builds and returns the renderable array for the display variant.
File
-
core/
modules/ block_place/ src/ Plugin/ DisplayVariant/ PlaceBlockPageVariant.php, line 142
Class
- PlaceBlockPageVariant
- Allows blocks to be placed directly within a region.
Namespace
Drupal\block_place\Plugin\DisplayVariantCode
protected function getVisibleRegionNames($theme) {
return system_region_list($theme, REGIONS_VISIBLE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.