function LinkGeneratorInterface::generateFromLink
Same name in other branches
- 9 core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php \Drupal\Core\Utility\LinkGeneratorInterface::generateFromLink()
- 10 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 90
Class
- LinkGeneratorInterface
- Defines an interface for generating links from route names and parameters.
Namespace
Drupal\Core\UtilityCode
public function generateFromLink(Link $link);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.