Commit 6e6b09c6 authored by alexpott's avatar alexpott

Issue #2676026 by dimaro, subharanjan, Girish-jerk, zaurav, jhodgdon: Correct...

Issue #2676026 by dimaro, subharanjan, Girish-jerk, zaurav, jhodgdon: Correct documentation of ThemeNegotiatorInterface
parent e0b0ed3f
......@@ -13,9 +13,8 @@
* Defines an interface for classes which determine the active theme.
*
* To set the active theme, create a new service tagged with 'theme_negotiator'
* (see user.services.yml for an example). The only method this service needs
* to implement is determineActiveTheme. Return the name of the theme, or NULL
* if other negotiators like the configured default one should kick in instead.
* (see the theme.negotiator.admin_theme service in user.services.yml for an
* example). Your service class needs to implement this interface.
*
* If you are setting a theme which is closely tied to the functionality of a
* particular page or set of pages (such that the page might not function
......@@ -46,7 +45,8 @@ public function applies(RouteMatchInterface $route_match);
* The current route match object.
*
* @return string|null
* Returns the active theme name, else return NULL.
* The name of the theme, or NULL if other negotiators, like the configured
* default one, should be used instead.
*/
public function determineActiveTheme(RouteMatchInterface $route_match);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment