You are here

public function PhotosImage::getDescription in Album Photos 8.5

Same name and namespace in other branches
  1. 6.0.x src/Entity/PhotosImage.php \Drupal\photos\Entity\PhotosImage::getDescription()

Gets the image description.

Return value

string The image description.

Overrides PhotosImageInterface::getDescription

File

src/Entity/PhotosImage.php, line 205

Class

PhotosImage
Defines the photos image entity class.

Namespace

Drupal\photos\Entity

Code

public function getDescription() {
  return $this
    ->get('description')->value;
}