• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/catalog/catalogwebhookhandler.php
  • Класс: BitrixSeoCatalogCatalogWebhookHandler
  • Вызов: CatalogWebhookHandler::run
private function run() : Json
{
	$result = $this->verifyRequest();

	if (!$result->isSuccess())
	{
		return $this->buildErrorResponse(
			$result->getErrorCollection()->current()
		);
	}

	$this->eventManager->send(
		new Event('seo', 'OnCatalogWebhook', ['payload' => $this->request->toArray(),])
	);

	return $this->buildResponse();
}