Enables navigation module for umami
4 unresolved threads
4 unresolved threads
Closes #3421869
Merge request reports
Activity
- Resolved by Mark Conroy
added 1 commit
- a6391294 - removes toolbar permission from test, since toolbar will not be used any more
added 65 commits
-
a690a079...08f436ed - 63 commits from branch
project:11.x
- c07caef8 - Revert "updates test"
- d765e4e4 - Merge branch '11.x' into 3421869-grant-author-and
-
a690a079...08f436ed - 63 commits from branch
224 223 // Check when editing a node, the warning is visible. 225 224 $this->drupalGet($recipe_node->toUrl('edit-form')); 226 225 $web_assert->statusCodeEquals(200); 227 $web_assert->pageTextContains('This site is intended for demonstration purposes.'); changed this line in version 8 of the diff
added 1 commit
- 83dc01c3 - issue/3421869: disable navigation & enable toolbar module DemoUmamiProfileTest.
added 1 commit
- 7a70ebf4 - issue/3421869: fixed typo error DemoUmamiProfileTest.
added 10 commits
-
2d95978b...03d00963 - 9 commits from branch
project:11.x
- eba86c4e - Merge branch '11.x' into 3421869-grant-author-and
-
2d95978b...03d00963 - 9 commits from branch
added 1 commit
- 82ca63fc - moves demo profile warning from toolbar to page_top
75 function demo_umami_toolbar() { 76 // Add a warning about using an experimental profile. 77 // @todo This can be removed once a generic warning for experimental profiles 78 // has been introduced. https://www.drupal.org/project/drupal/issues/2934374 79 $items['experimental-profile-warning'] = [ 80 '#weight' => 3400, 81 '#cache' => [ 82 'contexts' => ['route'], 83 ], 84 ]; 85 86 // Show warning only on administration pages. 75 function demo_umami_preprocess_html(&$variables) { 76 // We want to make sure people know that Umami is only a demonstration of 77 // Drupal, and should not be used as a starterkit. 78 // To do so, we will show warning at the top of administration pages. 81 '#cache' => [ 82 'contexts' => ['route'], 83 ], 84 ]; 85 86 // Show warning only on administration pages. 75 function demo_umami_preprocess_html(&$variables) { 76 // We want to make sure people know that Umami is only a demonstration of 77 // Drupal, and should not be used as a starterkit. 78 // To do so, we will show warning at the top of administration pages. 87 79 $admin_context = \Drupal::service('router.admin_context'); 88 80 if ($admin_context->isAdminRoute()) { 89 81 $link_to_help_page = \Drupal::moduleHandler()->moduleExists('help') && \Drupal::currentUser()->hasPermission('access help pages'); 90 $items['experimental-profile-warning']['#type'] = 'toolbar_item'; 91 $items['experimental-profile-warning']['tab'] = [ 82 // Add this to the end of the page 85 86 // Show warning only on administration pages. 75 function demo_umami_preprocess_html(&$variables) { 76 // We want to make sure people know that Umami is only a demonstration of 77 // Drupal, and should not be used as a starterkit. 78 // To do so, we will show warning at the top of administration pages. 87 79 $admin_context = \Drupal::service('router.admin_context'); 88 80 if ($admin_context->isAdminRoute()) { 89 81 $link_to_help_page = \Drupal::moduleHandler()->moduleExists('help') && \Drupal::currentUser()->hasPermission('access help pages'); 90 $items['experimental-profile-warning']['#type'] = 'toolbar_item'; 91 $items['experimental-profile-warning']['tab'] = [ 82 // Add this to the end of the page 83 $variables['page_top'][] = [ 92 84 '#type' => 'inline_template', 93 '#template' => '<a class="toolbar-warning" href="{{ more_info_link }}">This site is intended for demonstration purposes.</a>', 85 '#template' => '<p class="demo-profile-warning"><a href="{{ more_info_link }}">This site is intended for demonstration purposes.</a></p>',
Please register or sign in to reply