[ "prefilters" => [new HttpMethod([HttpMethod::METHOD_GET])], ], ]; } public function pageAction(): ?Component { $page = (string)$this->getRequest()->getQuery("PAGEN_1"); if (!ctype_digit($page) || (int)$page < 1 || (int)$page > NewsList::pageCount()) { $this->addError(new Error("Wrong page")); return null; } $meta = NewsList::pageMeta((int)$page); return new Component( "bitrix:news.list", NewsList::LIST_TEMPLATE, NewsList::listParams(true), [], static fn(): array => ["title" => $meta["title"]] ); } }