Issue #2160555 by Wim Leers: Disable Edit on admin pages.
parent
cef84c1877
commit
61a62b27ce
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue