Hi there,

Firstly, thanks for taking the time to contribute and maintain this module.

I noticed a bug when trying to add some of the components (e.g. tab): -

ArgumentCountError: Too few arguments to function Drupal\\layout_builder_kit\\Plugin\\Block\\LBKBaseComponent::__construct(), 3 passed in layout_builder_kit\\src\\Plugin\\Block\\LBKTab\\LBKTab.php on line 112 and exactly 4 expected in layout_builder_kit\\src\\Plugin\\Block\\LBKBaseComponent.php on line 59

This is easy to resolve by adding the fourth argument to the inherited classes create and construct methods, e.g.: -

- parent::__construct($configuration, $pluginId, $pluginDefinition);
+ parent::__construct($configuration, $pluginId, $pluginDefinition, $currentRouteMatch);

Comments

Dubs created an issue. See original summary.

alvarito75’s picture

Thanks for reporting this one.
We pushed the fix for this.

You may download the dev version to see the fix.

dubs’s picture

Thanks @alvarito75 for your quick response :-)

alvarito75’s picture

Status: Active » Fixed
alvarito75’s picture

Status: Fixed » Closed (fixed)

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