Add attributes parameter to ShowSearchHitTitle
authorStanislav Malyshev <smalyshev@gmail.com>
Mon, 23 Oct 2017 22:42:41 +0000 (15:42 -0700)
committerStanislav Malyshev <smalyshev@gmail.com>
Mon, 23 Oct 2017 22:42:41 +0000 (15:42 -0700)
commit0e93f96c9a82b9210ab6fcfa65bf4b21af00faf3
tree42ac070b3af9e42150baf7d6a82b08651ccab169
parentc66360d167aeacec8ec296ae8ff29fd5d3f1a557
Add attributes parameter to ShowSearchHitTitle

This would allow extensions to define custom attributes on title link,
such as put information in "title", change attributes depending on
specific search hit, etc.

Now Wikidata does the same by overriding LinkBegin, but this applies
to all links, not specifically to search result link.

Since ShowSearchHitTitle is always used with the link, I think it makes
sense to enable this specific customization.

Change-Id: I19f64e0909d92e32ddf6271f74c014e8b65d5014
docs/hooks.txt
includes/widget/search/FullSearchResultWidget.php