Drupal 8  8.0.2
NodeAddAccessCheck Class Reference
Inheritance diagram for NodeAddAccessCheck:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager)
 
 access (AccountInterface $account, NodeTypeInterface $node_type=NULL)
 

Protected Attributes

 $entityManager
 

Detailed Description

Determines access to for node add pages.

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 ( AccountInterface  $account,
NodeTypeInterface  $node_type = NULL 
)

Checks access to the node add page for the node type.

Parameters
\Drupal\Core\Session\AccountInterface$accountThe currently logged in account.
\Drupal\node\NodeTypeInterface$node_type(optional) The node type. If not specified, access is allowed if there exists at least one node type for which the user may create a node.
Returns
string A constant value.

References AccessResult\allowed(), Drupal\entityManager(), and AccessResult\neutral().

Here is the call graph for this function:


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