• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/CustomSection/Manager.php
  • Класс: BitrixIntranetCustomSectionManager
  • Вызов: Manager::fillCountersInfo
protected function fillCountersInfo(array $pages): void
{
	foreach ($pages as $page)
	{
		$provider = $this->getProvider($page->getModuleId());
		if (!$provider)
		{
			continue;
		}

		$counterId = $provider->getCounterId($page->getSettings());
		if (!is_null($counterId))
		{
			$page->setCounterId($counterId);
		}

		$counterValue = $provider->getCounterValue($page->getSettings());
		if (!is_null($counterValue))
		{
			$page->setCounterValue($counterValue);
		}
	}
}