Verified Commit 1671837e authored by Lee Rowlands's avatar Lee Rowlands
Browse files

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