You are here

public function SubstitutionInterface::getUrl in Linkit 8.5

Get the URL associated with a given entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to get a URL for.

Return value

\Drupal\Core\GeneratedUrl A url to replace.

3 methods override SubstitutionInterface::getUrl()
Canonical::getUrl in src/Plugin/Linkit/Substitution/Canonical.php
Get the URL associated with a given entity.
File::getUrl in src/Plugin/Linkit/Substitution/File.php
Get the URL associated with a given entity.
Media::getUrl in src/Plugin/Linkit/Substitution/Media.php
Get the URL associated with a given entity.

File

src/SubstitutionInterface.php, line 23

Class

SubstitutionInterface
Interface for substitution plugins.

Namespace

Drupal\linkit

Code

public function getUrl(EntityInterface $entity);