ThemeAccessCheck
class ThemeAccessCheck implements AccessInterface (View source)
Provides access checking for themes for routing and theme negotiation.
Properties
| protected ThemeHandlerInterface | $themeHandler | The theme handler. |
Methods
access(string $theme)
Checks access to the theme for routing.
bool
checkAccess(string $theme)
Indicates whether the theme is accessible based on whether it is installed.
Details
__construct(ThemeHandlerInterface $theme_handler)
Constructs a \Drupal\Core\Theme\Registry object.
AccessResultInterface
access(string $theme)
Checks access to the theme for routing.
bool
checkAccess(string $theme)
Indicates whether the theme is accessible based on whether it is installed.