• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/controller/type.php
  • Класс: BitrixRpaControllerType
  • Вызов: Type::getAutoWiredParameters
public function getAutoWiredParameters(): array
{
	$params = parent::getAutoWiredParameters();

	$params[] = new BitrixMainEngineAutoWireExactParameter(
		BitrixRpaModelType::class,
		'type',
		static function($className, $id)
		{
			return TypeTable::getById($id)->fetchObject();
		}
	);

	return $params;
}