• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/ui/accessrights/dataprovider.php
  • Класс: BitrixMainUIAccessRightsDataProvider
  • Вызов: DataProvider::getEntity
public function getEntity(string $type, int $id): EntityAccessRightEntityInterface
{
	$entityClass = $this->getEntityClassByType($type);
	if (!$entityClass)
	{
		throw new UnknownEntityTypeException();
	}

	$entity = new $entityClass($id);

	return $entity;
}