diff --git a/core/modules/node/config/schema/node.views.schema.yml b/core/modules/node/config/schema/node.views.schema.yml index b3e50dc..f8aed63 100644 --- a/core/modules/node/config/schema/node.views.schema.yml +++ b/core/modules/node/config/schema/node.views.schema.yml @@ -7,6 +7,9 @@ comments: type: boolean label: 'Show comments' + links: + type: boolean + label: 'Display links' views.area.node_listing_empty: type: views_area diff --git a/core/modules/node/src/Plugin/views/wizard/Node.php b/core/modules/node/src/Plugin/views/wizard/Node.php index 55b80bb..0f5de61 100644 --- a/core/modules/node/src/Plugin/views/wizard/Node.php +++ b/core/modules/node/src/Plugin/views/wizard/Node.php @@ -213,10 +213,12 @@ protected function display_options_row(&$display_options, $row_plugin, $row_opt case 'full_posts': $display_options['row']['type'] = 'entity:node'; $display_options['row']['options']['view_mode'] = 'full'; + $display_options['row']['options']['links'] = !empty($row_options['links']); break; case 'teasers': $display_options['row']['type'] = 'entity:node'; $display_options['row']['options']['view_mode'] = 'teaser'; + $display_options['row']['options']['links'] = !empty($row_options['links']); break; case 'titles_linked': case 'titles': diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_field_filters.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_field_filters.yml index 8246326..856d139 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_field_filters.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_field_filters.yml @@ -54,6 +54,7 @@ display: row: type: 'entity:node' options: + links: false view_mode: teaser rendering_language: translation_language_renderer fields: diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display.yml index 83bff1a..08ee446 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display.yml @@ -44,6 +44,7 @@ display: row: type: 'entity:node' options: + links: true view_mode: teaser comments: false sorts: @@ -68,7 +69,7 @@ display: pager_options: false style_options: '0' style_plugin: '0' - field: + fields: title: link_to_node: '1' plugin_id: node @@ -78,9 +79,6 @@ display: type: some pager_options: { } row: - options: - view_mode: teaser - comments: false type: fields style_options: { } style_plugin: default diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_feed.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_feed.yml index 60fddc0..ffb50d5 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_feed.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_feed.yml @@ -58,6 +58,7 @@ display: type: views_query row: options: + links: true view_mode: teaser comments: false type: 'entity:node' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_get_attach_displays.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_get_attach_displays.yml index 0e61f0b..8dd5551 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_get_attach_displays.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_get_attach_displays.yml @@ -36,6 +36,7 @@ display: row: type: 'entity:node' options: + links: true view_mode: teaser comments: false fields: diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_mini_pager.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_mini_pager.yml index 39ab5b5..e2341be 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_mini_pager.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_mini_pager.yml @@ -50,6 +50,7 @@ display: row: type: 'entity:node' options: + links: true view_mode: teaser comments: false fields: diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml index 47256df..23dc9ea 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml @@ -36,6 +36,7 @@ display: row: type: 'entity:node' options: + links: true view_mode: teaser comments: false fields: