MediaWiki master
MediaWiki\Skin\SkinComponentSearch Class Reference

Inherits MediaWiki\Skin\SkinComponent.

Collaboration diagram for MediaWiki\Skin\SkinComponentSearch:

Public Member Functions

 __construct (Config $config, MessageLocalizer $localizer, Title $searchTitle)
 
 getTemplateData ()
 This returns all the data that is needed to the component.Returned array must be serialized. This will be passed directly to a template (usually Mustache) for rendering.
Returns
array Data related to component required to render.
Since 1.38:
 

Detailed Description

Note
GPL-2.0-or-later
Access: internal
for use inside Skin and SkinTemplate classes only

Definition at line 18 of file SkinComponentSearch.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skin\SkinComponentSearch::__construct ( Config $config,
MessageLocalizer $localizer,
Title $searchTitle )
Parameters
Config$config
MessageLocalizer$localizer
Title$searchTitle

Definition at line 33 of file SkinComponentSearch.php.

Member Function Documentation

◆ getTemplateData()

MediaWiki\Skin\SkinComponentSearch::getTemplateData ( )

This returns all the data that is needed to the component.Returned array must be serialized. This will be passed directly to a template (usually Mustache) for rendering.

Returns
array Data related to component required to render.
Since 1.38:

  • string html-button-fulltext-attributes HTML attributes for usage on a button that redirects user to a search page with the current query.
  • string html-button-go-attributes HTML attributes for usage on a search button that redirects user to a title that matches the query.
  • string html-input-attributes HTML attributes for input on an input field that is used to construct a search query. Since 1.35:
  • string form-action Where the form should post to e.g. /w/index.php
  • string html-button-search Search button with label derived from html-button-go-attributes.
  • string html-button-search-fallback Search button with label derived from html-button-fulltext-attributes.
  • string html-input An input element derived from html-input-attributes.

Implements MediaWiki\Skin\SkinComponent.

Definition at line 147 of file SkinComponentSearch.php.


The documentation for this class was generated from the following file: