Verified Commit bb5f6e56 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.
   *
+2 −2
Original line number Diff line number Diff line
@@ -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.
   *