• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/form/entityeditorconfigscope.php
  • Класс: BitrixUIFormEntityEditorConfigScope
  • Вызов: EntityEditorConfigScope::getCaption
static function getCaption(
	string $scope,
	string $entityTypeId = '',
	?int $scopeId = null,
	?string $moduleId = null
): string
{
	$captions = self::getCaptions($entityTypeId, $moduleId);
	if ($scope === self::CUSTOM && $entityTypeId && $scopeId)
	{
		return $captions[$scope][$scopeId]['NAME'];
	}
	return ($captions[$scope] ?? "[{$scope}]");
}