• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/model/item.php
  • Класс: Bitrix\Rpa\Model\Item
  • Вызов: Item::getType
public function getType(): Type
{
	if($this->type === null)
	{
		$data = UserField\Internal\Registry::getInstance()->getTypeByEntity($this->entity);
		if($data)
		{
			unset($data['code']);
			$this->type = Type::wakeUp($data);
		}
	}

	return $this->type;
}