class EntityBundleAccessCheck implements AccessInterface (View source)

Provides an entity bundle checker for the _entity_bundles route requirement.

Deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Specify the list of bundles in the entity parameter, under "bundle" key, as a sequence, instead.

Methods

access(Route $route, RouteMatchInterface $route_match, AccountInterface $account)

Checks entity bundle match based on the _entity_bundles route requirement.

Details

AccessResultInterface access(Route $route, RouteMatchInterface $route_match, AccountInterface $account)

Checks entity bundle match based on the _entity_bundles route requirement.

Parameters

Route $route

The route to check against.

RouteMatchInterface $route_match

The parametrized route.

AccountInterface $account

The currently logged in account.

Return Value

AccessResultInterface

The access result.