You are here

public function PhotosImage::setTitle in Album Photos 8.5

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

Sets the image title.

Parameters

string $title: The image title.

Return value

$this The called image entity.

Overrides PhotosImageInterface::setTitle

File

src/Entity/PhotosImage.php, line 197

Class

PhotosImage
Defines the photos image entity class.

Namespace

Drupal\photos\Entity

Code

public function setTitle($title) {
  $this
    ->set('title', $title);
  return $this;
}