• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/Controller/Element.php
  • Класс: BitrixIblockControllerElement
  • Вызов: Element::getIblock
protected function getIblock()
{
	if ($this->iblock === null)
	{
		$iblockId = Application::getInstance()->getContext()->getRequest()->get('iblockId');

		$this->iblock = IblockTable::getByPrimary($iblockId, [
			'select' => ['ID', 'API_CODE']
		])->fetchObject();
	}

	return $this->iblock;
}