Unverified Commit bb5f6e56 authored by larowlan's avatar larowlan

Issue #2875807 by idebr, Hardik_Patel_12, Kristen Pol, larowlan: [backport]...

Issue #2875807 by idebr, Hardik_Patel_12, Kristen Pol, larowlan: [backport] Drupal::l() / Link::fromTextAndUrl $text documented as string, actually accepts string|array|\Drupal\Component\Render\MarkupInterface
parent db1b252d
......@@ -606,8 +606,8 @@ public static function linkGenerator() {
* This method is a convenience wrapper for the link generator service's
* generate() method.
*
* @param string $text
* The link text for the anchor tag.
* @param string|array|\Drupal\Component\Render\MarkupInterface $text
* The link text for the anchor tag as a translated string or render array.
* @param \Drupal\Core\Url $url
* The URL object used for the link.
*
......
......@@ -66,8 +66,8 @@ public static function createFromRoute($text, $route_name, $route_parameters = [
/**
* Creates a Link object from a given Url object.
*
* @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 \Drupal\Core\Url $url
* The Url to create the link for.
*
......
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