Skip to content

Commit 409631f

Browse files
committed
Merge remote-tracking branch 'upstream/master' into update-belgrade
2 parents 03b0f7a + 3cdd793 commit 409631f

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

config/install/core.entity_view_display.node.article.default.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ content:
2323
settings: { }
2424
third_party_settings: { }
2525
label: hidden
26-
comment:
27-
label: above
28-
type: comment_default
29-
weight: 20
30-
settings:
31-
pager_id: 0
32-
third_party_settings: { }
3326
field_image:
3427
type: image
3528
weight: -1

demo_commerce.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Demo Commerce
22
type: profile
3-
core: 8.x
3+
core_version_requirement: ^9
44
description: 'Install with Drupal Commerce pre-configured.'
55
distribution:
66
name: 'Demo Commerce'

demo_commerce.install

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Drupal\user\Entity\User;
99
use Drupal\user\RoleInterface;
1010
use Drupal\user\UserInterface;
11+
use Drupal\shortcut\Entity\Shortcut;
1112

1213
/**
1314
* Implements hook_install().
@@ -48,15 +49,15 @@ function demo_commerce_install() {
4849
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access shortcuts']);
4950

5051
// Populate the default shortcut set.
51-
$shortcut = entity_create('shortcut', [
52+
$shortcut = Shortcut::create([
5253
'shortcut_set' => 'default',
5354
'title' => t('Add content'),
5455
'weight' => -20,
5556
'link' => ['uri' => 'internal:/node/add'],
5657
]);
5758
$shortcut->save();
5859

59-
$shortcut = entity_create('shortcut', [
60+
$shortcut = Shortcut::create([
6061
'shortcut_set' => 'default',
6162
'title' => t('All content'),
6263
'weight' => -19,

0 commit comments

Comments
 (0)