Unverified Commit 1671837e authored by larowlan's avatar larowlan

Issue #2875807 by Hardik_Patel_12, idebr, Kristen Pol: Drupal::l() /...

Issue #2875807 by Hardik_Patel_12, idebr, Kristen Pol: Drupal::l() / Link::fromTextAndUrl $text documented as string, actually accepts string|array|\Drupal\Component\Render\MarkupInterface
parent c2ae6841
......@@ -47,8 +47,8 @@ public function __construct($text, Url $url) {
/**
* Creates a Link object from a given route name and parameters.
*
* @param string $text
* The text of the link.
* @param string|array|\Drupal\Component\Render\MarkupInterface $text
* The link text for the anchor tag as a translated string or render array.
* @param string $route_name
* The name of the route
* @param array $route_parameters
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment