Rename asset_comment and log_comment bundles to simply asset and log.

This commit is contained in:
Michael Stenta 2023-04-17 09:41:59 -04:00
parent 3ea84c92ad
commit 5f62c36cc2
9 changed files with 26 additions and 26 deletions

View File

@ -31,8 +31,8 @@ function farm_comment_base_field_definition(string $entity_type) {
// Set the field label. // Set the field label.
$field->setLabel(t('Comments')); $field->setLabel(t('Comments'));
// We assume that the comment type is "[entity-type]_comment". // We assume that the comment type matches the entity type.
$field->setSetting('comment_type', $entity_type . '_comment'); $field->setSetting('comment_type', $entity_type);
// A default value must be set for comment fields. // A default value must be set for comment fields.
// Enable comments on entities by default. // Enable comments on entities by default.

View File

@ -4,7 +4,7 @@ dependencies:
enforced: enforced:
module: module:
- farm_comment_asset - farm_comment_asset
id: asset_comment id: asset
label: 'Asset comment' label: 'Asset comment'
target_entity_type_id: asset target_entity_type_id: asset
description: '' description: ''

View File

@ -2,16 +2,16 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- comment.type.asset_comment - comment.type.asset
- field.field.comment.asset_comment.comment_body - field.field.comment.asset.comment_body
enforced: enforced:
module: module:
- farm_comment_asset - farm_comment_asset
module: module:
- text - text
id: comment.asset_comment.default id: comment.asset.default
targetEntityType: comment targetEntityType: comment
bundle: asset_comment bundle: asset
mode: default mode: default
content: content:
author: author:

View File

@ -2,16 +2,16 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- comment.type.asset_comment - comment.type.asset
- field.field.comment.asset_comment.comment_body - field.field.comment.asset.comment_body
enforced: enforced:
module: module:
- farm_comment_asset - farm_comment_asset
module: module:
- text - text
id: comment.asset_comment.default id: comment.asset.default
targetEntityType: comment targetEntityType: comment
bundle: asset_comment bundle: asset
mode: default mode: default
content: content:
comment_body: comment_body:

View File

@ -2,17 +2,17 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- comment.type.asset_comment - comment.type.asset
- field.storage.comment.comment_body - field.storage.comment.comment_body
enforced: enforced:
module: module:
- farm_comment_asset - farm_comment_asset
module: module:
- text - text
id: comment.asset_comment.comment_body id: comment.asset.comment_body
field_name: comment_body field_name: comment_body
entity_type: comment entity_type: comment
bundle: asset_comment bundle: asset
label: Comment label: Comment
description: '' description: ''
required: true required: true

View File

@ -4,7 +4,7 @@ dependencies:
enforced: enforced:
module: module:
- farm_comment_log - farm_comment_log
id: log_comment id: log
label: 'Log comment' label: 'Log comment'
target_entity_type_id: log target_entity_type_id: log
description: '' description: ''

View File

@ -2,16 +2,16 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- comment.type.log_comment - comment.type.log
- field.field.comment.log_comment.comment_body - field.field.comment.log.comment_body
enforced: enforced:
module: module:
- farm_comment_log - farm_comment_log
module: module:
- text - text
id: comment.log_comment.default id: comment.log.default
targetEntityType: comment targetEntityType: comment
bundle: log_comment bundle: log
mode: default mode: default
content: content:
author: author:

View File

@ -2,16 +2,16 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- comment.type.log_comment - comment.type.log
- field.field.comment.log_comment.comment_body - field.field.comment.log.comment_body
enforced: enforced:
module: module:
- farm_comment_log - farm_comment_log
module: module:
- text - text
id: comment.log_comment.default id: comment.log.default
targetEntityType: comment targetEntityType: comment
bundle: log_comment bundle: log
mode: default mode: default
content: content:
comment_body: comment_body:

View File

@ -2,17 +2,17 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- comment.type.log_comment - comment.type.log
- field.storage.comment.comment_body - field.storage.comment.comment_body
enforced: enforced:
module: module:
- farm_comment_log - farm_comment_log
module: module:
- text - text
id: comment.log_comment.comment_body id: comment.log.comment_body
field_name: comment_body field_name: comment_body
entity_type: comment entity_type: comment
bundle: log_comment bundle: log
label: Comment label: Comment
description: '' description: ''
required: true required: true