- Issue created by @benjifisher
In
π
Add missing category to Drupal\layout_builder\Plugin\Layout\BlankLayout and let modules and themes alter the list of layouts
RTBC
, we call Drupal\Core\Plugin\FilteredPluginManagerTrait::getFilteredDefinitions()
from Drupal\Core\Layout\LayoutPluginManager::getLayoutOptions()
. Since the latter method is in the Core namespace, not a module, there is no meaningful $consumer
to pass, but we have to pass something since it is a required parameter.
Make $consumer
optional.
In these lines, skip the second hook and the optional fourth parameter to alter()
if $consumer
is not provided:
$hooks[] = "plugin_filter_{$type}";
$hooks[] = "plugin_filter_{$type}__{$consumer}";
$this->moduleHandler()->alter($hooks, $definitions, $extra, $consumer);
$this->themeManager()->alter($hooks, $definitions, $extra, $consumer);
None
Drupal\Core\Layout\LayoutPluginManager::getLayoutOptions() can be called without providing the $consumer<code>
parameter.
None
N/A
Active
11.0 π₯
Last updated