Incompatible with paragraphs_selection

Created on 2 November 2022, almost 3 years ago
Updated 20 August 2025, 21 days ago

Problem/Motivation

The Paragraphs Selection module has no effect when used with the Layout Paragraphs widget.

Steps to reproduce

1. Install Paragraphs Selection.
2. Create a paragraph type with Layout Paragraphs enabled.
3. Add a paragraphs reference field to a content type using Paragraphs Selection instead of Default to define the allowed paragraph types.
4. Create a new node from the content type.
5. Click the + to add a child paragraph.

Expected outcome: The paragraph types are limited to the ones selected in step 3.
Actual outcome: All paragraph types are shown.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇭🇰Hong Kong phparkle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @wotnak opened merge request.
  • 🇵🇱Poland wotnak

    The incompatibility is not only with paragraphs_selection but with any entity reference selection handler that doesn't store available paragraphs types under target_bundles key same as the default paragraph reference selection handler.

    Approach from MR !111 worked well for me with custom selection handler that uses categories of paragraph types instead of paragraphs types directly.

    Created MR !211 against 3.0.x branch with changes from MR !111 + dependency injection instead of \Drupal::service() and updated phpdocs.

  • 🇵🇱Poland wotnak

    wotnak changed the visibility of the branch 3.0.x to hidden.

Production build 0.71.5 2024