public function ScriptAccessControlHandler::__construct in Script Manager 8
Constructs the access control handler.
Overrides EntityAccessControlHandler::__construct
File
- src/
Entity/ ScriptAccessControlHandler.php, line 43
Class
- ScriptAccessControlHandler
- Access control handler for script entities.
Namespace
Drupal\script_manager\EntityCode
public function __construct(EntityTypeInterface $entity_type, ContextHandlerInterface $context_handler, ContextRepositoryInterface $context_repository) {
parent::__construct($entity_type);
$this->contextHandler = $context_handler;
$this->contextRepository = $context_repository;
}