NodeAccessControlHandler::__construct

public NodeAccessControlHandler::__construct(EntityTypeInterface $entity_type, NodeGrantDatabaseStorageInterface $grant_storage)

Constructs a NodeAccessControlHandler object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\node\NodeGrantDatabaseStorageInterface $grant_storage: The node grant storage.

Overrides EntityAccessControlHandler::__construct

File

core/modules/node/src/NodeAccessControlHandler.php, line 38

Class

NodeAccessControlHandler
Defines the access control handler for the node entity type.

Namespace

Drupal\node

Code

public function __construct(EntityTypeInterface $entity_type, NodeGrantDatabaseStorageInterface $grant_storage) {
  parent::__construct($entity_type);
  $this->grantStorage = $grant_storage;
}
doc_Drupal
2016-10-29 09:30:31
Comments
Leave a Comment

Please login to continue.