You are here

public function ShortcutAccessControlHandler::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/shortcut/src/ShortcutAccessControlHandler.php \Drupal\shortcut\ShortcutAccessControlHandler::__construct()
  2. 10 core/modules/shortcut/src/ShortcutAccessControlHandler.php \Drupal\shortcut\ShortcutAccessControlHandler::__construct()

Constructs a ShortcutAccessControlHandler object.

Parameters

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

\Drupal\shortcut\ShortcutSetStorageInterface $shortcut_set_storage: The shortcut_set storage.

Overrides EntityAccessControlHandler::__construct

File

core/modules/shortcut/src/ShortcutAccessControlHandler.php, line 35

Class

ShortcutAccessControlHandler
Defines the access control handler for the shortcut entity type.

Namespace

Drupal\shortcut

Code

public function __construct(EntityTypeInterface $entity_type, ShortcutSetStorageInterface $shortcut_set_storage) {
  parent::__construct($entity_type);
  $this->shortcutSetStorage = $shortcut_set_storage;
}