Verified Commit 6a6dc60c authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3322485 by anneke_vde: EntityInterface::toLink() $text documented as...

Issue #3322485 by anneke_vde: EntityInterface::toLink() $text documented as string|null actually also accepts an render array

(cherry picked from commit d2c5a083)
parent 458f2411
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -136,9 +136,9 @@ public function toUrl($rel = 'canonical', array $options = []);
  /**
   * Generates the HTML for a link to this entity.
   *
   * @param string|null $text
   *   (optional) The link text for the anchor tag as a translated string.
   *   If NULL, it will use the entity's label. Defaults to NULL.
   * @param string|null|array|\Drupal\Component\Render\MarkupInterface $text
   *   (optional) The link text for the anchor tag as a translated string or
   *   render array. If NULL, it will use the entity's label. Defaults to NULL.
   * @param string $rel
   *   (optional) The link relationship type. Defaults to 'canonical'.
   * @param array $options