You are here

public function ImageHotspot::setTitle in Image Hotspots 8

Sets new title of the hotspot.

Parameters

string $title: New title.

Overrides ImageHotspotInterface::setTitle

File

src/Entity/ImageHotspot.php, line 61

Class

ImageHotspot
Defines the image hotspot entity class.

Namespace

Drupal\image_hotspots\Entity

Code

public function setTitle($title) {
  $this->title->value = $title;
}