Verified Commit bae80c73 authored by Dave Long's avatar Dave Long
Browse files

fix: #3608069 Restore (but don't apply) deprecated recipes to 11.4.x

By: rszrama
By: phenaproxima
By: gábor hojtsy
By: catch
parent a30f11b1
Loading
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
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 −0
Original line number Diff line number Diff line
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
+16 −0
Original line number Diff line number Diff line
<?php

declare(strict_types=1);

namespace Drupal\FunctionalTests\Recipe\Core\article_comment;

use Drupal\Tests\system\Functional\Recipe\GenericRecipeTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests Generic.
 */
#[Group('core_article_comment_recipe')]
#[RunTestsInSeparateProcesses]
class GenericTest extends GenericRecipeTestBase {}
+21 −0
Original line number Diff line number Diff line
langcode: en
status: true
dependencies:
  config:
    - node.type.article
id: node.article.promote
field_name: promote
entity_type: node
bundle: article
label: 'Promoted to front page'
description: ''
required: false
translatable: false
default_value:
  -
    value: 1
default_value_callback: ''
settings:
  on_label: 'On'
  off_label: 'Off'
field_type: boolean
+23 −0
Original line number Diff line number Diff line
langcode: en
status: true
dependencies:
  config:
    - field.storage.node.body
    - node.type.article
  module:
    - text
id: node.article.body
field_name: body
entity_type: node
bundle: article
label: Body
description: ''
required: false
translatable: true
default_value: {  }
default_value_callback: ''
settings:
  display_summary: true
  required_summary: false
  allowed_formats: {  }
field_type: text_with_summary
Loading