$uploadField = new UploadField($this->getId());
$uploadField->maxFiles = $this->getMaximum();
$uploadField->setImageOnly($this->isImageOnly());
+ $uploadField->setAllowSvgImages($this->isImageOnly());
return $uploadField;
}
* @return UploadFile[]
*/
public function getValue() {
+ $this->registerField();
+
return UploadHandler::getInstance()->getFilesByFieldId($this->getId());
}
+ /**
+ * @inheritDoc
+ */
+ public function getObjectProperty() {
+ return null;
+ }
+
/**
* @inheritDoc
*/
/**
* Sets the imageOnly flag for this field.
*
- * @param boolean $imageOnly maximum field value
+ * @param boolean $imageOnly
* @return static this field
*/
public function imageOnly($imageOnly = true) {