public function LinkGeneratorInterface::generateFromLink in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\UtilityCode
public function generateFromLink(Link $link);