You are here

public function SwitchShortcutSet::__construct in Drupal 9

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

Constructs a SwitchShortcutSet object.

Parameters

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

File

core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 40

Class

SwitchShortcutSet
Builds the shortcut set switch form.

Namespace

Drupal\shortcut\Form

Code

public function __construct(ShortcutSetStorageInterface $shortcut_set_storage) {
  $this->shortcutSetStorage = $shortcut_set_storage;
}