Drupal 8  8.0.2
NodePreviewAccessCheck Class Reference
Inheritance diagram for NodePreviewAccessCheck:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager)
 
 access (AccountInterface $account, NodeInterface $node_preview)
 

Protected Attributes

 $entityManager
 

Detailed Description

Determines access to node previews.

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,
NodeInterface  $node_preview 
)

Checks access to the node preview page.

Parameters
\Drupal\Core\Session\AccountInterface$accountThe currently logged in account.
\Drupal\node\NodeInterface$node_previewThe node that is being previewed.
Returns
string A constant value.

References AccessibleInterface\access(), EntityInterface\bundle(), Drupal\entityManager(), and EntityInterface\isNew().

Here is the call graph for this function:


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