File tree Expand file tree Collapse file tree 2 files changed +28
-27
lines changed Expand file tree Collapse file tree 2 files changed +28
-27
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ if [[ "$1" == "--dry-run" ]]; then
14
14
- Admin Toolbar (admin_toolbar)
15
15
- Admin Toolbar (admin_toolbar_tools)
16
16
- Coffee (coffee)
17
- - \" All-Props\" Test SDC (sdc_test_all_props)
18
17
2. Create a test page at '/test'."
19
18
exit 0
20
19
fi
@@ -30,30 +29,6 @@ composer require \
30
29
drush en -y \
31
30
admin_toolbar \
32
31
admin_toolbar_tools \
33
- coffee \
34
- sdc_test_all_props
32
+ coffee
35
33
36
- # Create a test page. Note: If any more PHP code is added here, it should be
37
- # extracted to its own file. Writing it this way is clumsy, to say the least.
38
- drush php:eval "
39
- \$ alias = '/test';
40
- \$ path_alias_repository = \Drupal::service('path_alias.repository');
41
34
42
- // See if the test page already exists and exit if so. (Just checking for
43
- // the path alias is naive, but it will suffice for our purposes.
44
- if (\$ path_alias_repository->lookupByAlias(\$ alias, 'en')) {
45
- echo 'The test page already exists.' . PHP_EOL;
46
- return;
47
- }
48
-
49
- // Create the xb_page entity.
50
- \Drupal::service('entity_type.manager')
51
- ->getStorage('xb_page')
52
- ->create([
53
- 'title' => 'XB 💫',
54
- 'description' => 'This is an XB page.',
55
- 'path' => ['alias' => \$ alias],
56
- ])->save();
57
-
58
- echo 'The test page has been created.' . PHP_EOL;
59
- "
Original file line number Diff line number Diff line change @@ -14,13 +14,39 @@ drush site:install -y \
14
14
# Enable the Experience Builder module.
15
15
drush pm:install -y \
16
16
experience_builder \
17
- xb_dev_standard
17
+ xb_dev_standard \
18
+ sdc_test_all_props
18
19
19
20
# Without a cache rebuild, Drupal can't find test modules, leading to a WSOD.
20
21
drush cache:rebuild
21
22
22
23
# Create a default article.
23
24
drush php:eval " (\Drupal\node\Entity\Node::create(['type' => 'article', 'title' => 'Test', 'uid' => 1]))->save();"
24
25
26
+ # Create a test page. Note: If any more PHP code is added here, it should be
27
+ # extracted to its own file. Writing it this way is clumsy, to say the least.
28
+ drush php:eval "
29
+ \$ alias = '/test';
30
+ \$ path_alias_repository = \Drupal::service('path_alias.repository');
31
+
32
+ // See if the test page already exists and exit if so. (Just checking for
33
+ // the path alias is naive, but it will suffice for our purposes.
34
+ if (\$ path_alias_repository->lookupByAlias(\$ alias, 'en')) {
35
+ echo 'The test page already exists.' . PHP_EOL;
36
+ return;
37
+ }
38
+
39
+ // Create the xb_page entity.
40
+ \Drupal::service('entity_type.manager')
41
+ ->getStorage('xb_page')
42
+ ->create([
43
+ 'title' => 'XB 💫',
44
+ 'description' => 'This is an XB page.',
45
+ 'path' => ['alias' => \$ alias],
46
+ ])->save();
47
+
48
+ echo 'The test page has been created.' . PHP_EOL;
49
+ "
50
+
25
51
# Display a one time login link for user ID 1.
26
52
drush uli
You can’t perform that action at this time.
0 commit comments