/** * Render image tags for the MediaGallery. Please note it is the caller's responsibility * to ensure thumb is of the proper type. No error checking takes place here and there's * the opportunity to throw a fatal if the wrong data is passed in. * @requestParam MediaTransformOutput thumb * @requestParam array options This is here for consistency, it's not used yet */ public function gallery() { $this->response->setVal('mediaType', 'image'); // Use the image template $this->overrideTemplate('image'); $thumb = $this->getVal('thumb'); $this->response->setVal('linkHref', $thumb->file->getTitle()->getLinkURL()); ThumbnailHelper::setImageAttribs($this, $thumb, ['fluid' => true]); ThumbnailHelper::setPictureTagInfo($this, $thumb); }