Initial Drupal 11 with DDEV setup
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: comment
|
||||
label: 'Default comments'
|
||||
target_entity_type_id: node
|
||||
description: 'Allows commenting on content'
|
||||
@ -0,0 +1,33 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment
|
||||
- field.field.comment.comment.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment.default
|
||||
targetEntityType: comment
|
||||
bundle: comment
|
||||
mode: default
|
||||
content:
|
||||
author:
|
||||
weight: -2
|
||||
region: content
|
||||
comment_body:
|
||||
type: text_textarea
|
||||
weight: 11
|
||||
region: content
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
subject:
|
||||
type: string_textfield
|
||||
weight: 10
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
@ -0,0 +1,24 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment
|
||||
- field.field.comment.comment.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment.default
|
||||
targetEntityType: comment
|
||||
bundle: comment
|
||||
mode: default
|
||||
content:
|
||||
comment_body:
|
||||
type: text_default
|
||||
label: hidden
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: content
|
||||
links:
|
||||
weight: 100
|
||||
region: content
|
||||
hidden: { }
|
||||
@ -0,0 +1,21 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment
|
||||
- field.storage.comment.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment.comment_body
|
||||
field_name: comment_body
|
||||
entity_type: comment
|
||||
bundle: comment
|
||||
label: Comment
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
allowed_formats: { }
|
||||
field_type: text_long
|
||||
@ -0,0 +1,19 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
||||
- node
|
||||
id: node.comment
|
||||
field_name: comment
|
||||
entity_type: node
|
||||
type: comment
|
||||
settings:
|
||||
comment_type: comment
|
||||
module: comment
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
||||
30
web/core/recipes/comment_base/recipe.yml
Normal file
30
web/core/recipes/comment_base/recipe.yml
Normal file
@ -0,0 +1,30 @@
|
||||
name: 'Default comments'
|
||||
description: 'Allows commenting on content.'
|
||||
type: 'Comment type'
|
||||
install:
|
||||
- comment
|
||||
- node
|
||||
- views
|
||||
config:
|
||||
strict:
|
||||
# Treat field storages strictly, since they influence the database layout.
|
||||
- field.storage.comment.comment_body
|
||||
- field.storage.node.comment
|
||||
import:
|
||||
comment:
|
||||
- core.entity_view_mode.comment.full
|
||||
- field.storage.comment.comment_body
|
||||
- system.action.comment_delete_action
|
||||
- system.action.comment_publish_action
|
||||
- system.action.comment_save_action
|
||||
- system.action.comment_unpublish_action
|
||||
- views.view.comment
|
||||
- views.view.comments_recent
|
||||
actions:
|
||||
user.role.authenticated:
|
||||
grantPermissions:
|
||||
- 'access comments'
|
||||
- 'post comments'
|
||||
- 'skip comment approval'
|
||||
user.role.anonymous:
|
||||
grantPermission: 'access comments'
|
||||
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Drupal\FunctionalTests\Recipe\Core\comment_base;
|
||||
|
||||
use Drupal\Tests\system\Functional\Recipe\GenericRecipeTestBase;
|
||||
|
||||
/**
|
||||
* @group core_comment_base_recipe
|
||||
*/
|
||||
class GenericTest extends GenericRecipeTestBase {}
|
||||
Reference in New Issue
Block a user