816
850
* @throws NotFoundException
818
852
public function getMediaId()
854
$this->getLog()->debug('Getting first MediaID for Widget: %d. Media: %s', $this->getWidgetId(), json_encode($this->widget->mediaIds));
822
856
if (count($this->widget->mediaIds) <= 0)
823
857
throw new NotFoundException(__('No file to return'));