Drupal 8  8.0.2
EntityCreateAccessCheck Class Reference
Inheritance diagram for EntityCreateAccessCheck:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager)
 access (Route $route, RouteMatchInterface $route_match, AccountInterface $account)

Protected Attributes

 $requirementsKey = '_entity_create_access'

Detailed Description

Defines an access checker for entity creation.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entity_manager)

Constructs a EntityCreateAccessCheck object.

\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

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

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

\Symfony\Component\Routing\Route$routeThe route to check against.
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe parametrized route.
\Drupal\Core\Session\AccountInterface$accountThe currently logged in account.
The access result.

References Drupal\entityManager(), RouteMatchInterface\getRawParameters(), and AccessResult\neutral().

Here is the call graph for this function:

The documentation for this class was generated from the following file: