Problem/Motivation

If a Subtheme is created and you like to use styleguide as intended this is not possible right now, because of a missing plugin.

AH01071: Got error 'PHP message: Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "blb_col_1" plugin does not exist. Valid plugin IDs for Drupal\\Core\\Layout\\LayoutPluginManager are: bs_1col, bs_1col_stacked, bs_2col, bs_2col_bricked, bs_2col_stacked, bs_3col, bs_3col_bricked, bs_3col_stacked, bs_4col, bs_4col_bricked, bs_4col_stacked, 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, ds_1col, ds_1col_wrapper, ds_2col, ds_2col_fluid, ds_2col_stacked, ds_2col_stacked_fluid, ds_3col, ds_3col_equal_width, ds_3col_stacked, ds_3col_stacked_fluid, ds_3col_stacked_equal_width, ds_4col, ds_reset, vertical_media_teaser_xlarge, vertical_media_teaser_large, vertical_media_teaser_medium, vertical_media_teaser_small, vertical_media_teaser_xsmall, horizontal_media_teaser_xlarge, horizontal_media_teaser_large, horizontal_media_teaser_medium, horizontal_media_teaser_small,...', referer: http://h2941247.stratoserver.net/admin/appearance

Steps to reproduce

Install Varbase as usual
Enable styleguide
Create a varbase-bs4 subtheme by using the script
Set the subtheme as default
Click the styleguide tab and select the theme

The error above will be the result

Proposed resolution

Fix missing plugin to make styleguide greeate, again

Add the patch for #3184083: Fix invalid id passed to layout plugin
Pass the layout not definition id. which will add the extension name if the layout was a dynamic layout.

Remaining tasks

  • Fix issue
  • Patch
  • Test
  • Review
  • Release

User interface changes

  • None

API changes

  • None

Data model changes

  • None

https://www.drupal.org/files/issues/2021-07-25/AwesomeScreenshot-product...

Comments

Joachim Namyslo created an issue. See original summary.

rajab natshah’s picture

Title: Styleguide does not work in 9.x anymore because of miising pluin ID. » Fix Styleguide missing plugin ID. Which does not work in 9.x anymore
Assigned: Unassigned » rajab natshah
Issue summary: View changes
Priority: Critical » Minor

Thank you, Joachim for reporting.

I confirm the issue. With any theme.

It's the Bootstrap Layout Builder custom dynamic layout.
Having the Default, Full Content.

I may try to remove the default and full view modes from the list of view modes in the admin/appearance/styleguide

Having a view mode with a Layout Builder enabled. But at the style guide feels that BLB is not loading for the view mode.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

The "blb_col_1" plugin does not exist. Valid plugin IDs for Drupal\Core\Layout\LayoutPluginManager are:

  • bootstrap_layout_builder:blb_col_1,
  • bootstrap_layout_builder:blb_col_2,
  • bootstrap_layout_builder:blb_col_3,
  • bootstrap_layout_builder:blb_col_4,
  • bootstrap_layout_builder:blb_col_5,
  • bootstrap_layout_builder:blb_col_6,
  • bootstrap_layout_builder:blb_col_7,
  • bootstrap_layout_builder:blb_col_8,
  • bootstrap_layout_builder:blb_col_9,
  • bootstrap_layout_builder:blb_col_10,
  • bootstrap_layout_builder:blb_col_11,
  • bootstrap_layout_builder:blb_col_12

blb_col_1 is the bootstrap_layout_builder:blb_col_1

Could be fixed in Varbase Layout Builder ... and then in Bootstrap Layout Builder too ..

  • RajabNatshah committed 4f2fc10 on 9.0.x
    Issue #3225177 by Joachim Namyslo: Fix Styleguide missing plugin ID....
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Status: Active » Needs review
Issue tags: +varbase-9.0.1
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Issue summary: View changes

Added the patch for #3184083: Fix invalid id passed to layout plugin
Pass the layout not definition id. which will add the extension name if the layout was a dynamic layout.

rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.