You are here

public function PhotosImage::setDescription in Album Photos 8.5

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

Sets the image description.

Parameters

string $description: The image description.

Return value

$this The called image entity.

Overrides PhotosImageInterface::setDescription

File

src/Entity/PhotosImage.php, line 212

Class

PhotosImage
Defines the photos image entity class.

Namespace

Drupal\photos\Entity

Code

public function setDescription($description) {
  $this
    ->set('description', $description);
  return $this;
}