Entity::getFieldCaption

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Entity
  4. getFieldCaption
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/entity.php
  • Класс: Bitrix\Crm\WebForm\Entity
  • Вызов: Entity::getFieldCaption
static function getFieldCaption($entityName, $fieldId)
{
	static $map = null;
	if ($map === null)
	{
		$map = static::getMap();
	}

	$entity = $map[$entityName];
	if (isset($entity['GET_FIELD_CAPTION']))
	{
		return $entity['GET_FIELD_CAPTION']($fieldId);
	}

	/**@var $className \CCrmLead*/
	$className = $entity['CLASS_NAME'] ?? '';
	return $className ? $className::GetFieldCaption($fieldId) : '';
}

Добавить комментарий