Example #1
0
 /**
  * Return the HTML necessary to render an edit form.
  *
  * @param MediaRepresentation $media
  * @param array $options Global options for the media update form
  * @return string
  */
 public function updateForm(MediaRepresentation $media, array $options = [])
 {
     $ingester = $this->ingesterManager->get($media->ingester());
     if ($ingester instanceof MutableIngesterInterface) {
         return $ingester->updateForm($this->getView(), $media, $options);
     } else {
         return '';
     }
 }