"", "orders" => "orders/", "reviews" => "reviews/"]; public function executeComponent(): array { $items = []; foreach (self::SECTIONS as $code => $path) { $items[] = [ "CODE" => $code, "URL" => SITE_DIR . "personal/" . $path, "ACTIVE" => ($this->arParams["ACTIVE"] ?? "") === $code, ]; } $this->arResult = ["ITEMS" => $items]; $this->includeComponentTemplate(); return $this->arResult; } }