public function getThemeRegionConfig($theme)
    {
        $regions = variable_get('ucms_layout_regions_' . $theme, []);

        if (null === $regions) {
            $regions = array_keys(system_region_list($theme));
            $regions = array_fill_keys($regions, self::CONTEXT_PAGE);
        }

        return array_map('intval', $regions);
    }
public function getThemeRegionConfig($theme)
    {
        $regions = variable_get('ucms_layout_regions_' . $theme, []);

        if (null === $regions) {
            $regions = array_keys(system_region_list($theme));
            $regions = array_fill_keys($regions, self::CONTEXT_PAGE);
        }

        return array_map('intval', $regions);
    }
public function getThemeRegionConfig ( $ theme ) { $ regions = variable_get ( 'ucms_layout_regions_' . $ theme , [ ] ) ; if ( null === $ regions ) { $ regions = array_keys ( system_region_list ( $ theme ) ) ; $ regions = array_fill_keys ( $ regions , self :: CONTEXT_PAGE ) ; } return array_map ( 'intval' , $ regions ) ; }
Get the enabled regions of the given theme.

@param string $theme Theme key

@return int[]
Get the enabled regions of the given theme .