Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
image_canvas_editor_api
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
image_canvas_editor_api
Commits
b3ce4284
Commit
b3ce4284
authored
7 years ago
by
Eirik Morland
Browse files
Options
Downloads
Patches
Plain Diff
Make it possible to alter the edit link
parent
2daf4e46
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Field/FieldWidget/ImageCanvasEditorWidget.php
+2
-0
2 additions, 0 deletions
src/Plugin/Field/FieldWidget/ImageCanvasEditorWidget.php
with
2 additions
and
0 deletions
src/Plugin/Field/FieldWidget/ImageCanvasEditorWidget.php
+
2
−
0
View file @
b3ce4284
...
...
@@ -135,6 +135,8 @@ class ImageCanvasEditorWidget extends ImageWidget {
],
'#access'
=>
\Drupal
::
currentUser
()
->
hasPermission
(
'use image canvas editors'
),
];
\Drupal
::
moduleHandler
()
->
alter
(
'image_canvas_editor_api_edit_link'
,
$link
);
$element
[
'edit'
]
=
$link
;
}
return
$element
;
...
...
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