You are here

public function ImageHotspot::setTargetLink in Image Hotspots 8

Sets new target attribute of the hotspot.

Parameters

string $target: New link target.

Overrides ImageHotspotInterface::setTargetLink

File

src/Entity/ImageHotspot.php, line 75

Class

ImageHotspot
Defines the image hotspot entity class.

Namespace

Drupal\image_hotspots\Entity

Code

public function setTargetLink($target) {
  $this->target->value = $target;
}