public function NodeAccess::__construct in Permissions by Term 8
Same name and namespace in other branches
- 8.2 src/Service/NodeAccess.php \Drupal\permissions_by_term\Service\NodeAccess::__construct()
NodeAccess constructor.
Parameters
AccessStorage $accessStorage:
NodeAccessRecordFactory $nodeAccessRecordFactory:
EntityTypeManagerInterface $entityTypeManager:
AccessCheck $accessCheck:
Connection $database:
File
- src/
Service/ NodeAccess.php, line 75
Class
- NodeAccess
- Class NodeAccess
Namespace
Drupal\permissions_by_term\ServiceCode
public function __construct(AccessStorage $accessStorage, NodeAccessRecordFactory $nodeAccessRecordFactory, EntityTypeManagerInterface $entityTypeManager, AccessCheck $accessCheck, Connection $database) {
$this->accessStorage = $accessStorage;
$this->nodeAccessRecordFactory = $nodeAccessRecordFactory;
$this->entityTypeManager = $entityTypeManager;
$this->userEntityStorage = $this->entityTypeManager
->getStorage('user');
$this->node = $this->entityTypeManager
->getStorage('node');
$this->accessCheck = $accessCheck;
$this->database = $database;
}