diff --git a/core/modules/quickedit/quickedit.module b/core/modules/quickedit/quickedit.module index 20e1a02..992e201 100644 --- a/core/modules/quickedit/quickedit.module +++ b/core/modules/quickedit/quickedit.module @@ -117,11 +117,9 @@ function quickedit_field_formatter_info_alter(&$info) { * Implements hook_preprocess_HOOK() for the page title template. */ function quickedit_preprocess_page_title(&$variables) { - if (!\Drupal::currentUser()->hasPermission('access in-place editing')) { - return; + if (\Drupal::currentUser()->hasPermission('access in-place editing')) { + $variables['title_attributes']['class'][] = 'js-quickedit-page-title'; } - - $variables['title_attributes']['class'][] = 'js-quickedit-page-title'; } /**