Issue #2473123 by sander.devos, JacobSanford, xjm, jhodgdon: Add node grant classes and interfaces to the node access topic
parent
05cc734a0f
commit
c085079d0d
|
@ -15,6 +15,8 @@ use Drupal\node\NodeTypeInterface;
|
|||
|
||||
/**
|
||||
* Determines access to for node add pages.
|
||||
*
|
||||
* @ingroup node_access
|
||||
*/
|
||||
class NodeAddAccessCheck implements AccessInterface {
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ use Drupal\node\NodeInterface;
|
|||
|
||||
/**
|
||||
* Determines access to node previews.
|
||||
*
|
||||
* @ingroup node_access
|
||||
*/
|
||||
class NodePreviewAccessCheck implements AccessInterface {
|
||||
|
||||
|
|
|
@ -16,6 +16,8 @@ use Symfony\Component\Routing\Route;
|
|||
|
||||
/**
|
||||
* Provides an access checker for node revisions.
|
||||
*
|
||||
* @ingroup node_access
|
||||
*/
|
||||
class NodeRevisionAccessCheck implements AccessInterface {
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ use Drupal\Core\Cache\UserCacheContext;
|
|||
* This allows for node access grants-sensitive caching when listing nodes.
|
||||
*
|
||||
* @see node_query_node_access_alter()
|
||||
* @ingroup node_access
|
||||
*/
|
||||
class NodeAccessGrantsCacheContext extends UserCacheContext implements CalculatedCacheContextInterface {
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
* Defines the access control handler for the node entity type.
|
||||
*
|
||||
* @see \Drupal\node\Entity\Node
|
||||
* @ingroup node_access
|
||||
*/
|
||||
class NodeAccessControlHandler extends EntityAccessControlHandler implements NodeAccessControlHandlerInterface, EntityHandlerInterface {
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ use Drupal\Core\Session\AccountInterface;
|
|||
|
||||
/**
|
||||
* Node specific entity access control methods.
|
||||
*
|
||||
* @ingroup node_access
|
||||
*/
|
||||
interface NodeAccessControlHandlerInterface {
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
* Defines a controller class that handles the node grants system.
|
||||
*
|
||||
* This is used to build node query access.
|
||||
*
|
||||
* @ingroup node_access
|
||||
*/
|
||||
class NodeGrantDatabaseStorage implements NodeGrantDatabaseStorageInterface {
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ use Drupal\Core\Session\AccountInterface;
|
|||
|
||||
/**
|
||||
* Provides an interface for node access grant storage.
|
||||
*
|
||||
* @ingroup node_access
|
||||
*/
|
||||
interface NodeGrantDatabaseStorageInterface {
|
||||
|
||||
|
|
Loading…
Reference in New Issue