/** * Получить месторасположения меню, * опредённые в конфиге * @return array */ public function getLocations() { if (!is_null($this->locationsCache)) { return $this->locationsCache; } foreach ($this->menuConfig->getLocations() as $location) { $this->locationsCache[$location['alias']] = $this->translationManager->trans($location['name'], [], $location['trans_domain'] ?: null); } return $this->locationsCache; }