Loading core/lib/Drupal/Core/Theme/ThemeManagerInterface.php +6 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ namespace Drupal\Core\Theme; use Drupal\Core\Routing\RouteMatchInterface; /** * Provides a high level access to the active theme and methods to use it. * Loading Loading @@ -29,9 +31,12 @@ public function render($hook, array $variables); /** * Returns the active theme object. * * @param \Drupal\Core\Routing\RouteMatchInterface|null $route_match * The route match. * * @return \Drupal\Core\Theme\ActiveTheme */ public function getActiveTheme(); public function getActiveTheme(RouteMatchInterface $route_match = NULL); /** * Determines whether there is an active theme. Loading Loading
core/lib/Drupal/Core/Theme/ThemeManagerInterface.php +6 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ namespace Drupal\Core\Theme; use Drupal\Core\Routing\RouteMatchInterface; /** * Provides a high level access to the active theme and methods to use it. * Loading Loading @@ -29,9 +31,12 @@ public function render($hook, array $variables); /** * Returns the active theme object. * * @param \Drupal\Core\Routing\RouteMatchInterface|null $route_match * The route match. * * @return \Drupal\Core\Theme\ActiveTheme */ public function getActiveTheme(); public function getActiveTheme(RouteMatchInterface $route_match = NULL); /** * Determines whether there is an active theme. Loading