Метод getById
Сигнатура метода
public function getById(DictionaryType $type, string $id): ?DictionaryValue
Возвращает:
?DictionaryValue
Описание
The value $id of the dictionary $type, or `null` when that dictionary has no such value. A dictionary holding the identifier twice is an invariant this domain declares rather than resolves: which of the rows is read is then not defined.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$type
|
DictionaryType
|
—
|
—
|
$id
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/Dictionary/DictionaryValueRepositoryInterface.php
Расположение метода в файле
Строки
63–63