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