LinkGeneratorInterface::generateFromLink

public LinkGeneratorInterface::generateFromLink(Link $link)

Renders a link from a link object.

@internal Should not be used in user code. Use \Drupal\Core\Link instead.

Parameters

\Drupal\Core\Link $link: A link object to convert to a string.

Return value

\Drupal\Core\GeneratedLink A GeneratedLink object containing a link to the given route and parameters and bubbleable metadata.

File

core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php, line 90

Class

LinkGeneratorInterface
Defines an interface for generating links from route names and parameters.

Namespace

Drupal\Core\Utility

Code

public function generateFromLink(Link $link);
doc_Drupal
2016-10-29 09:23:18
Comments
Leave a Comment

Please login to continue.