Unverified Commit aebff2a5 authored by larowlan's avatar larowlan

Issue #3119254 by quietone, shaktik, douggreen, larowlan: [backport] Add...

Issue #3119254 by quietone, shaktik, douggreen, larowlan: [backport] Add taxonomy_term_reference_plain and taxonomy_term_reference_rss_category to TaxonomyTermReference

(cherry picked from commit 9a2ef65f)
parent bd8685e6
......@@ -128,6 +128,8 @@ public function testMigration() {
$this->assertEntity('node.blog.teaser');
$this->assertComponent('node.blog.teaser', 'body', 'text_summary_or_trimmed', 'hidden', 0);
$this->assertComponent('node.blog.default', 'field_termplain', 'entity_reference_label', 'above', 13);
$this->assertComponent('node.blog.default', 'field_termrss', 'entity_reference_label', 'above', 14);
$this->assertEntity('node.book.default');
$this->assertComponent('node.book.default', 'body', 'text_default', 'hidden', 0);
......
......@@ -203,6 +203,8 @@ public function addAllFieldProcessesAltersData() {
'map' => [
'taxonomy_term_reference' => [
'taxonomy_term_reference_link' => 'entity_reference_label',
'taxonomy_term_reference_plain' => 'entity_reference_label',
'taxonomy_term_reference_rss_category' => 'entity_reference_label',
'i18n_taxonomy_term_reference_link' => 'entity_reference_label',
'entityreference_entity_view' => 'entity_reference_entity_view',
],
......
......@@ -89,8 +89,8 @@ protected function getEntityCounts() {
'contact_form' => 3,
'contact_message' => 0,
'editor' => 2,
'field_config' => 79,
'field_storage_config' => 60,
'field_config' => 81,
'field_storage_config' => 62,
'file' => 3,
'filter_format' => 7,
'image_style' => 6,
......
......@@ -24,6 +24,8 @@ class TaxonomyTermReference extends FieldPluginBase {
public function getFieldFormatterMap() {
return [
'taxonomy_term_reference_link' => 'entity_reference_label',
'taxonomy_term_reference_plain' => 'entity_reference_label',
'taxonomy_term_reference_rss_category' => 'entity_reference_label',
'i18n_taxonomy_term_reference_link' => 'entity_reference_label',
'entityreference_entity_view' => 'entity_reference_entity_view',
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment