We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f15bd7e commit c82b0f4Copy full SHA for c82b0f4
1 file changed
commerce_base.install
@@ -6,7 +6,6 @@
6
*/
7
8
use Drupal\user\Entity\User;
9
-use Drupal\shortcut\Entity\Shortcut;
10
11
/**
12
* Implements hook_install().
@@ -20,21 +19,4 @@ function commerce_base_install() {
20
19
$user = User::load(1);
21
$user->roles[] = 'administrator';
22
$user->save();
23
-
24
- // Populate the default shortcut set.
25
- $shortcut = Shortcut::create([
26
- 'shortcut_set' => 'default',
27
- 'title' => t('Add content'),
28
- 'weight' => -20,
29
- 'link' => ['uri' => 'internal:/node/add'],
30
- ]);
31
- $shortcut->save();
32
33
34
35
- 'title' => t('All content'),
36
- 'weight' => -19,
37
- 'link' => ['uri' => 'internal:/admin/content'],
38
39
40
}
0 commit comments