Skip to content
Snippets Groups Projects
Commit 61a62b27 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2160555 by Wim Leers: Disable Edit on admin pages.

parent cef84c18
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,12 @@ function edit_page_build(&$page) {
return;
}
// In-place editing is only supported on the front-end.
$path = \Drupal::request()->attributes->get('_system_path');
if (path_is_admin($path)) {
return;
}
$page['#attached']['library'][] = array('edit', 'edit');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment