PropertiesDialog::getFieldTypeObject: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Activity\PropertiesDialog :: getFieldTypeObject()
//  /dist/bitrix/modules/bizproc/lib/activity/propertiesdialog.php:349

    
public function getFieldTypeObject(array $field)
    {
        
$runtime = \CBPRuntime::getRuntime();
        
$runtime->startRuntime();

        
/** @var \CBPDocumentService $documentService */
        
$documentService $runtime->getService('DocumentService');

        
$field FieldType::normalizeProperty($field);

        
$typeClass $documentService->getTypeClass($this->getDocumentType(), $field['Type']);
        if (
$typeClass && class_exists($typeClass))
        {
            return new 
FieldType($field$this->getDocumentType(), $typeClass);
        }
        return 
null;
    }