Link::preRenderLink
public static function Link::preRenderLink
public static Link::preRenderLink($element)
Pre-render callback: Renders a link into #markup.
Doing so during pre_render gives modules a chance to alter the link parts.
Parameters
array $element: A structured array whose keys form the arguments to \Drupal\Core\Utility\LinkGeneratorInterface::generate():
- #title: The link text.
- #url: The URL info either pointing to a route or a non routed path.
- #options: (optional) An array of options to pass to the link generator.