Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Drupal Environment
Commits
613d7b0c
Commit
613d7b0c
authored
10 months ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Update patch for gin toolbar
parent
649d5f1e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!222
Merging develop into main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/d10/3319445.diff
+2
-15
2 additions, 15 deletions
patches/d10/3319445.diff
with
2 additions
and
15 deletions
patches/d10/3319445.diff
+
2
−
15
View file @
613d7b0c
diff --git a/gin_toolbar.module b/gin_toolbar.module
diff --git a/gin_toolbar.module b/gin_toolbar.module
index
3fb44b40c1c3c977775637bad7d9fda8beeb90c3..86e65051a9b6c791573100acb3d743c84042cdbe
100644
index
f30970a7d3b6a88c0b45e4c7343da3356f293b82..77e96c4c118f75965ea1968826e4c0feda79157d
100644
--- a/gin_toolbar.module
--- a/gin_toolbar.module
+++ b/gin_toolbar.module
+++ b/gin_toolbar.module
@@ -8,6 +8,7 @@
@@ -8,6 +8,7 @@
...
@@ -10,7 +10,7 @@ index 3fb44b40c1c3c977775637bad7d9fda8beeb90c3..86e65051a9b6c791573100acb3d743c8
...
@@ -10,7 +10,7 @@ index 3fb44b40c1c3c977775637bad7d9fda8beeb90c3..86e65051a9b6c791573100acb3d743c8
use Drupal\gin\GinNavigation;
use Drupal\gin\GinNavigation;
use Drupal\gin\GinSettings;
use Drupal\gin\GinSettings;
use Drupal\gin\GinUserPicture;
use Drupal\gin\GinUserPicture;
@@ -2
12
,8 +2
13
,13 @@
function gin_toolbar_preprocess_toolbar(&$variables) {
@@ -2
56
,8 +2
57
,13 @@
function gin_toolbar_preprocess_toolbar(&$variables) {
$entity = \Drupal::request()->attributes->get($matches['entity_type_id']);
$entity = \Drupal::request()->attributes->get($matches['entity_type_id']);
if ($entity instanceof EntityInterface && $entity->hasLinkTemplate('edit-form')) {
if ($entity instanceof EntityInterface && $entity->hasLinkTemplate('edit-form')) {
...
@@ -26,16 +26,3 @@ index 3fb44b40c1c3c977775637bad7d9fda8beeb90c3..86e65051a9b6c791573100acb3d743c8
...
@@ -26,16 +26,3 @@ index 3fb44b40c1c3c977775637bad7d9fda8beeb90c3..86e65051a9b6c791573100acb3d743c8
}
}
}
}
}
}
diff --git a/templates/toolbar.html.twig b/templates/toolbar.html.twig
index f050f4d1c354fef8a9726c8164d0ae45579b1cc5..758cedbcc9fe8aa347b3390c063f1881c3014c10 100644
--- a/templates/toolbar.html.twig
+++ b/templates/toolbar.html.twig
@@ -16,7 +16,7 @@
<li class="gin-breadcrumb__item">
{% if entity_edit_url and entity_title %}
<a class="gin-breadcrumb__link gin-back-to-admin" href="{{ entity_edit_url }}">{{ 'Edit %title'|t({ '%title': entity_title }) }}</a>
- {% else %}
+ {% elseif access_admin_content %}
<a class="gin-breadcrumb__link gin-back-to-admin" href="{{ path('system.admin_content') }}">{{ 'Back to Administration'|t }}</a>
{% endif %}
</li>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment