ViewModeAccessCheck
class ViewModeAccessCheck implements AccessInterface (View source)
Defines an access check for entity view mode routes.
Properties
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
Methods
access(Route $route, RouteMatchInterface $route_match, AccountInterface $account, string $view_mode_name = 'default', string $bundle = NULL)
Checks access to the view mode.
Details
__construct(EntityTypeManagerInterface $entity_type_manager)
Creates a new ViewModeAccessCheck.
AccessResultInterface
access(Route $route, RouteMatchInterface $route_match, AccountInterface $account, string $view_mode_name = 'default', string $bundle = NULL)
Checks access to the view mode.