You are here

public function LinkGeneratorInterface::generateFromLink in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php \Drupal\Core\Utility\LinkGeneratorInterface::generateFromLink()

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.

1 method overrides LinkGeneratorInterface::generateFromLink()
LinkGenerator::generateFromLink in core/lib/Drupal/Core/Utility/LinkGenerator.php
Renders a link from a link object.

File

core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php, line 95
Contains \Drupal\Core\Utility\LinkGeneratorInterface.

Class

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

Namespace

Drupal\Core\Utility

Code

public function generateFromLink(Link $link);