ViewModeAccessCheck
class ViewModeAccessCheck implements AccessInterface (View source)
Defines an access check for entity view mode routes.
Traits
Provides a standard way to announce deprecated properties.
Properties
| protected | $deprecatedProperties | {@inheritdoc} | |
| 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
__get($name)
Allows to access deprecated/removed properties.
This method must be public.
__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.