Esempio n. 1
0
 /**
  * Set accepted mime types
  *
  * @param string[] $mimes
  */
 public function mimes($mimes)
 {
     // Only useful on file fields
     if (!$this->field->isOfType('file')) {
         return false;
     }
     $this->field->accept($this->setAccepted($mimes));
 }