function ShortcutAccessControlHandler::__construct

Same name in other branches
  1. 9 core/modules/shortcut/src/ShortcutAccessControlHandler.php \Drupal\shortcut\ShortcutAccessControlHandler::__construct()
  2. 10 core/modules/shortcut/src/ShortcutAccessControlHandler.php \Drupal\shortcut\ShortcutAccessControlHandler::__construct()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.