- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/component/imageinput.php
- Класс: BitrixCatalogComponentImageInput
- Вызов: ImageInput::getFormattedField
public function getFormattedField(): array
{
$fileValues = $this->getValues();
$signedFileValues = $this->getSignedValues();
return [
'id' => 'bx_file_'.$this->getInputId(),
'values' => $signedFileValues,
'isEmpty' => empty($fileValues),
'preview' => $this->getPreview(),
'input' => $this->getHtml($this->getImageParams(), $fileValues, [
'disabled' => $this->entity === null,
]),
'emptyInput' => $this->getHtml($this->getImageParams(), [], [
'disabled' => true,
]),
];
}