Commit 61a62b27 authored by webchick's avatar webchick

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

parent cef84c18
......@@ -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');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment