public function UltimenuManager::getRegionsByMenu in Ultimenu 8.2
File
- src/
UltimenuManager.php, line 637
Class
- UltimenuManager
- Implements UltimenuManagerInterface.
Namespace
Drupal\ultimenuCode
public function getRegionsByMenu($menu_name) {
if (!isset($this->regionsByMenu[$menu_name])) {
$regions = [];
foreach ($this
->getEnabledRegions() as $key => $region_name) {
if (strpos($key, 'ultimenu_' . $menu_name . '_') === FALSE) {
continue;
}
$regions[$key] = $region_name;
}
$this->regionsByMenu[$menu_name] = $regions;
}
return $this->regionsByMenu[$menu_name];
}