class EntityCreateAccessCheck implements AccessInterface (View source)

Defines an access checker for entity creation.

Traits

Provides a standard way to announce deprecated properties.

Properties

protected $deprecatedProperties {@inheritdoc}
protected EntityTypeManagerInterface $entityTypeManager

The entity type manager service.

protected string $requirementsKey

The key used by the routing requirement.

Methods

__get($name)

Allows to access deprecated/removed properties.

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a EntityCreateAccessCheck object.

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

Checks access to create the entity type and bundle for the given route.

Details

__get($name)

Allows to access deprecated/removed properties.

This method must be public.

Parameters

$name

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a EntityCreateAccessCheck object.

Parameters

EntityTypeManagerInterface $entity_type_manager

The entity type manager service.

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

Checks access to create the entity type and bundle for the given route.

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.