diff --git a/core/modules/aggregator/config/install/views.view.aggregator_sources.yml b/core/modules/aggregator/config/install/views.view.aggregator_sources.yml index 408bffe..584c54c 100644 --- a/core/modules/aggregator/config/install/views.view.aggregator_sources.yml +++ b/core/modules/aggregator/config/install/views.view.aggregator_sources.yml @@ -193,6 +193,9 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true + type: string + settings: + link_to_entity: false plugin_id: field entity_type: aggregator_feed entity_field: title diff --git a/core/modules/aggregator/src/AggregatorFeedViewsData.php b/core/modules/aggregator/src/AggregatorFeedViewsData.php index 3cfb5c6..72249d4 100644 --- a/core/modules/aggregator/src/AggregatorFeedViewsData.php +++ b/core/modules/aggregator/src/AggregatorFeedViewsData.php @@ -35,7 +35,7 @@ public function getViewsData() { $data['aggregator_feed']['fid']['filter']['id'] = 'numeric'; $data['aggregator_feed']['title']['help'] = $this->t('The title of the aggregator feed.'); - $data['aggregator_feed']['title']['field']['id'] = 'field'; + $data['aggregator_feed']['argument']['id'] = 'string'; $data['aggregator_feed']['url']['help'] = $this->t('The fully-qualified URL of the feed.'); diff --git a/core/modules/aggregator/src/AggregatorItemViewsData.php b/core/modules/aggregator/src/AggregatorItemViewsData.php index 0f1a940..61f2040 100644 --- a/core/modules/aggregator/src/AggregatorItemViewsData.php +++ b/core/modules/aggregator/src/AggregatorItemViewsData.php @@ -28,8 +28,7 @@ public function getViewsData() { $data['aggregator_item']['iid']['argument']['numeric'] = TRUE; $data['aggregator_item']['title']['help'] = $this->t('The title of the aggregator item.'); - $data['aggregator_item']['title']['field']['id'] = 'field'; - $data['aggregator_item']['title']['field']['extra'] = 'link'; + $data['aggregator_item']['title']['field']['default_formatter_settings'] = ['link_to_entity' => TRUE]; $data['aggregator_item']['link']['help'] = $this->t('The link to the original source URL of the item.'); diff --git a/core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_items.yml b/core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_items.yml index 404acc6..8af60db 100644 --- a/core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_items.yml +++ b/core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_items.yml @@ -44,6 +44,9 @@ display: table: aggregator_item field: title id: title + type: string + settings: + link_to_entity: true plugin_id: field alter: alter_text: false diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_opml.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_opml.yml index 827202e..8265a5b 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_opml.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_opml.yml @@ -83,6 +83,9 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true + type: string + settings: + link_to_entity: false plugin_id: field entity_type: aggregator_feed entity_field: title