From 4858ae0ce1cd142048b6dda62e5b5757446c43d7 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Fri, 26 Aug 2016 03:58:59 +0200 Subject: [PATCH] Fix docs for the HtmlPageLinkRenderer hooks The $text parameter wasn't correctly documented here, as far as I can tell. Change-Id: I335d1a59739d80f9f904872e3135f0aae7535956 --- docs/hooks.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index a0ee8bde3a..7f1640b48f 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1937,8 +1937,8 @@ LinkRenderer, before processing starts. Return false to skip default processing and return $ret. $linkRenderer: the LinkRenderer object $target: the LinkTarget that the link is pointing to -&$html: the contents that the tag should have (raw HTML); null means - "default". +&$text: the contents that the tag should have; either a plain, unescaped + string or a HtmlArmor object; null means "default". &$customAttribs: the HTML attributes that the tag should have, in associative array form, with keys and values unescaped. Should be merged with default values, with a value of false meaning to suppress the @@ -1955,7 +1955,8 @@ return false, $ret will be returned. $linkRenderer: the LinkRenderer object $target: the LinkTarget object that the link is pointing to $isKnown: boolean indicating whether the page is known or not -&$html: the final (raw HTML) contents of the tag, after processing. +&$text: the contents that the tag should have; either a plain, unescaped + string or a HtmlArmor object. &$attribs: the final HTML attributes of the tag, after processing, in associative array form. &$ret: the value to return if your hook returns false. -- 2.20.1