You are here

public function ImageHotspot::setDescription in Image Hotspots 8

Sets new description of the hotspot.

Parameters

string $description: New description.

Overrides ImageHotspotInterface::setDescription

File

src/Entity/ImageHotspot.php, line 89

Class

ImageHotspot
Defines the image hotspot entity class.

Namespace

Drupal\image_hotspots\Entity

Code

public function setDescription($description) {
  $this->description->value = $description;
}