diff --git a/core/modules/tracker/config/install/views.view.tracker.yml b/core/modules/tracker/config/install/views.view.tracker.yml index d84c4f0c..a75b13b 100644 --- a/core/modules/tracker/config/install/views.view.tracker.yml +++ b/core/modules/tracker/config/install/views.view.tracker.yml @@ -7,13 +7,14 @@ dependencies: - comment - history - node + - tracker - user id: tracker label: Tracker -module: node +module: tracker description: 'Shows all new activity on the system.' tag: default -base_table: node +base_table: node_field_data base_field: nid core: '8' display: @@ -567,7 +568,7 @@ display: arguments: uid_touch_tracker: id: uid_touch_tracker - table: node + table: node_field_data field: uid_touch_tracker relationship: none group_type: group @@ -703,6 +704,13 @@ display: format: basic_html plugin_id: text display_extenders: { } + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - 'user.node_grants:view' + cacheable: false page_1: id: page_1 display_title: Page @@ -727,13 +735,20 @@ display: menu_name: main weight: 0 display_extenders: { } + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - 'user.node_grants:view' + cacheable: false page_2: display_plugin: page id: page_2 display_title: 'Page 2' position: 2 display_options: - path: user/%/activity + path: user/%user/activity menu: type: tab title: Track @@ -747,7 +762,7 @@ display: arguments: uid_touch_tracker: id: uid_touch_tracker - table: node + table: node_field_data field: uid_touch_tracker relationship: none group_type: group @@ -779,6 +794,13 @@ display: validate_options: { } plugin_id: tracker_user_uid display_extenders: { } + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - 'user.node_grants:view' + cacheable: false page_3: id: page_3 display_title: 'Page 3' @@ -804,3 +826,10 @@ display: weight: 0 display_description: '' display_extenders: { } + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - 'user.node_grants:view' + cacheable: false diff --git a/core/modules/tracker/tracker.module b/core/modules/tracker/tracker.module index 57d7170..3703666 100644 --- a/core/modules/tracker/tracker.module +++ b/core/modules/tracker/tracker.module @@ -23,7 +23,9 @@ function tracker_help($route_name, RouteMatchInterface $route_match) { $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Tracking new and updated site content') . '
'; - $output .= '
' . t('The Recent content page shows new and updated content in reverse chronological order, listing the content type, title, author\'s name, number of comments, and time of last update. Content is considered updated when changes occur in the text, or when new comments are added. The My recent content tab limits the list to the currently logged-in user.', array('!recent' => \Drupal::url('tracker.page'))) . '
'; + $output .= '
' . t('The Recent content page shows new and updated content in reverse chronological order, listing the content type, title, author\'s name, number of comments, and time of last update. Content is considered updated when changes occur in the text, or when new comments are added. The My recent content tab limits the list to the currently logged-in user.', [ + '!recent' => \Drupal::url('view.tracker.page_1'), + ]) . '
'; $output .= '
' . t('Tracking user-specific content') . '
'; $output .= '
' . t("To follow a specific user's new and updated content, select the Activity tab from the user's profile page.") . '
'; $output .= '
';