/** * Returns the caption of the original image * * @return string */ public function getCaption() { return $this->originalAsset->getCaption(); }
/** * @param Image $image * @return array */ protected function buildImageMetaDataArray(Image $image) { return ['title' => $image->getTitle(), 'caption' => $image->getCaption()]; }