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

 $entityManager
 
 $requirementsKey = '_entity_create_access'
 

Detailed Description

Defines an access checker for entity creation.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entity_manager)

Constructs a EntityCreateAccessCheck object.

Parameters
\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.

Parameters
\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.
Returns
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: