You are here

public function ImageDTO::getCaption in PhotoSwipe 3.x

Get Caption.

Return value

string|null Image caption.

File

src/ImageDTO.php, line 187

Class

ImageDTO
Contains image item.

Namespace

Drupal\photoswipe

Code

public function getCaption() {
  return $this->caption;
}