Unverified Commit 6381b015 authored by alexpott's avatar alexpott

Issue #2991473 by markconroy, rahulrasgon, Vidushi Mehta, JayKandari, Eli-T,...

Issue #2991473 by markconroy, rahulrasgon, Vidushi Mehta, JayKandari, Eli-T, NickWilde: Remove the field_author from Umami recipe content type
parent e3c750b0
......@@ -2,7 +2,6 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.recipe.field_author
- field.field.node.recipe.field_cooking_time
- field.field.node.recipe.field_difficulty
- field.field.node.recipe.field_image
......@@ -31,15 +30,6 @@ content:
region: content
settings: { }
third_party_settings: { }
field_author:
weight: 1
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_cooking_time:
weight: 3
settings:
......
......@@ -3,7 +3,6 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.card
- field.field.node.recipe.field_author
- field.field.node.recipe.field_cooking_time
- field.field.node.recipe.field_difficulty
- field.field.node.recipe.field_image
......@@ -43,7 +42,6 @@ content:
region: content
hidden:
content_moderation_control: true
field_author: true
field_cooking_time: true
field_ingredients: true
field_number_of_servings: true
......
......@@ -3,7 +3,6 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.card_common
- field.field.node.recipe.field_author
- field.field.node.recipe.field_cooking_time
- field.field.node.recipe.field_difficulty
- field.field.node.recipe.field_image
......@@ -35,7 +34,6 @@ content:
third_party_settings: { }
hidden:
content_moderation_control: true
field_author: true
field_cooking_time: true
field_difficulty: true
field_ingredients: true
......
......@@ -3,7 +3,6 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.card_common_alt
- field.field.node.recipe.field_author
- field.field.node.recipe.field_cooking_time
- field.field.node.recipe.field_difficulty
- field.field.node.recipe.field_image
......@@ -35,7 +34,6 @@ content:
region: content
hidden:
content_moderation_control: true
field_author: true
field_cooking_time: true
field_difficulty: true
field_ingredients: true
......
......@@ -2,7 +2,6 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.recipe.field_author
- field.field.node.recipe.field_cooking_time
- field.field.node.recipe.field_difficulty
- field.field.node.recipe.field_image
......@@ -113,4 +112,3 @@ content:
third_party_settings: { }
hidden:
content_moderation_control: true
field_author: true
......@@ -3,7 +3,6 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.full
- field.field.node.recipe.field_author
- field.field.node.recipe.field_cooking_time
- field.field.node.recipe.field_difficulty
- field.field.node.recipe.field_image
......@@ -109,5 +108,4 @@ content:
region: content
hidden:
content_moderation_control: true
field_author: true
links: true
......@@ -3,7 +3,6 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.recipe.field_author
- field.field.node.recipe.field_cooking_time
- field.field.node.recipe.field_difficulty
- field.field.node.recipe.field_image
......@@ -27,7 +26,6 @@ content:
region: content
hidden:
content_moderation_control: true
field_author: true
field_cooking_time: true
field_difficulty: true
field_image: true
......
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_author
- node.type.recipe
id: node.recipe.field_author
field_name: field_author
entity_type: node
bundle: recipe
label: Author
description: 'The author of this recipe. Start typing their username to search.'
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:user'
handler_settings:
include_anonymous: true
filter:
type: _none
target_bundles: null
sort:
field: _none
auto_create: false
field_type: entity_reference
langcode: en
status: true
dependencies:
module:
- node
- user
id: node.field_author
field_name: field_author
entity_type: node
type: entity_reference
settings:
target_type: user
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
......@@ -202,7 +202,6 @@ protected function importRecipes() {
// Set article author.
if (!empty($data['author'])) {
$values['uid'] = $this->getUser($data['author']);
$values['field_author'] = $values['uid'];
}
// Set node alias if exists.
if (!empty($data['slug'])) {
......
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