Definition at line 15 of file FileUploader.php.
◆ __construct()
- Parameters
-
CustomerMetadataInterface | $customerMetadataService | |
AddressMetadataInterface | $addressMetadataService | |
ElementFactory | $elementFactory | |
FileProcessorFactory | $fileProcessorFactory | |
AttributeMetadataInterface | $attributeMetadata | |
string | $entityTypeCode | |
string | $scope | |
Definition at line 61 of file FileUploader.php.
70 $this->customerMetadataService = $customerMetadataService;
71 $this->addressMetadataService = $addressMetadataService;
72 $this->elementFactory = $elementFactory;
73 $this->fileProcessorFactory = $fileProcessorFactory;
74 $this->attributeMetadata = $attributeMetadata;
75 $this->entityTypeCode = $entityTypeCode;
76 $this->scope = $scope;
◆ validate()
Validate uploaded file
- Returns
- array|bool
Definition at line 84 of file FileUploader.php.
86 $formElement = $this->elementFactory->create(
87 $this->attributeMetadata,
92 $errors = $formElement->validateValue($this->getData());
The documentation for this class was generated from the following file: