You are here

public function ImageHotspot::setLink in Image Hotspots 8

Sets new link of the hotspot.

Parameters

string $url: Url of new link.

Overrides ImageHotspotInterface::setLink

File

src/Entity/ImageHotspot.php, line 103

Class

ImageHotspot
Defines the image hotspot entity class.

Namespace

Drupal\image_hotspots\Entity

Code

public function setLink($url) {
  $this->link->value = $url;
}