Skip to content
Snippets Groups Projects
Commit b3ce4284 authored by Eirik Morland's avatar Eirik Morland
Browse files

Make it possible to alter the edit link

parent 2daf4e46
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment