Initial Drupal 11 with DDEV setup
This commit is contained in:
		@ -0,0 +1,32 @@
 | 
			
		||||
langcode: en
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  config:
 | 
			
		||||
    - field.storage.node.comment
 | 
			
		||||
    - node.type.article
 | 
			
		||||
  module:
 | 
			
		||||
    - comment
 | 
			
		||||
id: node.article.comment
 | 
			
		||||
field_name: comment
 | 
			
		||||
entity_type: node
 | 
			
		||||
bundle: article
 | 
			
		||||
label: Comments
 | 
			
		||||
description: ''
 | 
			
		||||
required: false
 | 
			
		||||
translatable: true
 | 
			
		||||
default_value:
 | 
			
		||||
  -
 | 
			
		||||
    status: 2
 | 
			
		||||
    cid: 0
 | 
			
		||||
    last_comment_timestamp: 0
 | 
			
		||||
    last_comment_name: null
 | 
			
		||||
    last_comment_uid: 0
 | 
			
		||||
    comment_count: 0
 | 
			
		||||
default_value_callback: ''
 | 
			
		||||
settings:
 | 
			
		||||
  default_mode: 1
 | 
			
		||||
  per_page: 50
 | 
			
		||||
  anonymous: 0
 | 
			
		||||
  form_location: true
 | 
			
		||||
  preview: 1
 | 
			
		||||
field_type: comment
 | 
			
		||||
							
								
								
									
										32
									
								
								web/core/recipes/article_comment/recipe.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								web/core/recipes/article_comment/recipe.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,32 @@
 | 
			
		||||
name: 'Article comments'
 | 
			
		||||
description: 'Provides commenting on article content.'
 | 
			
		||||
type: 'Content field'
 | 
			
		||||
recipes:
 | 
			
		||||
  - article_content_type
 | 
			
		||||
  - comment_base
 | 
			
		||||
config:
 | 
			
		||||
  # If the `comment` field already exists, it is guaranteed to be the right
 | 
			
		||||
  # field type because the comment_base recipe treats the field storage strictly.
 | 
			
		||||
  strict: false
 | 
			
		||||
  actions:
 | 
			
		||||
    core.entity_form_display.node.article.default:
 | 
			
		||||
      setComponent:
 | 
			
		||||
        name: comment
 | 
			
		||||
        options:
 | 
			
		||||
          type: comment_default
 | 
			
		||||
          weight: 20
 | 
			
		||||
          region: content
 | 
			
		||||
          settings: {}
 | 
			
		||||
          third_party_settings: {}
 | 
			
		||||
    core.entity_view_display.node.article.default:
 | 
			
		||||
      setComponent:
 | 
			
		||||
        name: comment
 | 
			
		||||
        options:
 | 
			
		||||
          type: comment_default
 | 
			
		||||
          label: above
 | 
			
		||||
          settings:
 | 
			
		||||
            view_mode: default
 | 
			
		||||
            pager_id: 0
 | 
			
		||||
          third_party_settings: {  }
 | 
			
		||||
          weight: 110
 | 
			
		||||
          region: content
 | 
			
		||||
@ -0,0 +1,12 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Drupal\FunctionalTests\Recipe\Core\article_comment;
 | 
			
		||||
 | 
			
		||||
use Drupal\Tests\system\Functional\Recipe\GenericRecipeTestBase;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @group core_article_comment_recipe
 | 
			
		||||
 */
 | 
			
		||||
class GenericTest extends GenericRecipeTestBase {}
 | 
			
		||||
		Reference in New Issue
	
	Block a user