Skip to content

Commit c82b0f4

Browse files
committed
Stop creating the Shortcut during the install.
1 parent f15bd7e commit c82b0f4

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

commerce_base.install

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
use Drupal\user\Entity\User;
9-
use Drupal\shortcut\Entity\Shortcut;
109

1110
/**
1211
* Implements hook_install().
@@ -20,21 +19,4 @@ function commerce_base_install() {
2019
$user = User::load(1);
2120
$user->roles[] = 'administrator';
2221
$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-
$shortcut = Shortcut::create([
34-
'shortcut_set' => 'default',
35-
'title' => t('All content'),
36-
'weight' => -19,
37-
'link' => ['uri' => 'internal:/admin/content'],
38-
]);
39-
$shortcut->save();
4022
}

0 commit comments

Comments
 (0)