EntityCreateAccessCheck
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
__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.
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a EntityCreateAccessCheck object.
AccessResultInterface
access(Route $route, RouteMatchInterface $route_match, AccountInterface $account)
Checks access to create the entity type and bundle for the given route.