Documentation

getFirstValue

array public
\Bitrix\Crm\Widget\Data\DataSource::getFirstValue(
 array $params,
 string $fieldName,
 string $defaultValue = ''
);

Method gets field value for first entity from list. Non-static method.

Parameters

ParameterDescriptionVersion
$paramsList of parameters.
$fieldNameField name.
$defaultValueDefault field value.

Example



© «Bitrix24», 2001-2024