Creating a Field Group Without Choosing a Layout Results in an Error

Created on 14 August 2024, 3 months ago
Updated 29 August 2024, 3 months ago

Problem/Motivation

If you try to create a layouts field group and you don't choose a layout then an error is thrown and the display page is no longer accessible.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. Valid plugin IDs for Drupal\Core\Layout\LayoutPluginManager are: layout_twocol_section, layout_threecol_section, layout_fourcol_section, layout_onecol, layout_twocol, layout_twocol_bricks, layout_threecol_25_50_25, layout_threecol_33_34_33, layout_builder_blank in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /app/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Steps to reproduce

Create a layout field group without choosing a layout.

Proposed resolution

Make the layout field required

Remaining tasks

None

User interface changes

Layout field is now required.

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States redndahead

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

Comments & Activities

Production build 0.71.5 2024