You are here

public function SupportTicketRevisionAccessCheck::__construct in Support Ticketing System 8

Constructs a new SupportTicketRevisionAccessCheck.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Database\Connection $connection: The database connection.

File

modules/support_ticket/src/Access/SupportTicketRevisionAccessCheck.php, line 53
Contains \Drupal\support_ticket\Access\SupportTicketRevisionAccessCheck.

Class

SupportTicketRevisionAccessCheck
Provides an access checker for support_ticket revisions.

Namespace

Drupal\support_ticket\Access

Code

public function __construct(EntityManagerInterface $entity_manager) {
  $this->supportTicketStorage = $entity_manager
    ->getStorage('support_ticket');
  $this->supportTicketAccess = $entity_manager
    ->getAccessControlHandler('support_ticket');
}