• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/Command/SaveEntityCommand.php
  • Класс: BitrixCrmMobileCommandSaveEntityCommand
  • Вызов: SaveEntityCommand::getPendingFiles
private function getPendingFiles(Field $field, array $tokens): PendingFileCollection
{
	$fileController = new EntityFieldController([
		'entityTypeId' => $this->entity->getEntityTypeId(),
		'entityId' => $this->entity->getId(),
		'categoryId' => $this->factory->isCategoriesSupported() ? $this->entity->getCategoryId() : null,
		'fieldName' => $field->getName(),
	]);

	return (new Uploader($fileController))->getPendingFiles($tokens);
}