ShortcutAccessControlHandler::__construct

public ShortcutAccessControlHandler::__construct(EntityTypeInterface $entity_type, ShortcutSetStorageInterface $shortcut_set_storage)

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;
}
doc_Drupal
2016-10-29 09:42:29
Comments
Leave a Comment

Please login to continue.