- Issue created by @woldtwerk
- Merge request !10238Issue #3488315 by woldtwerk: add attributes to navigation:toolbar-button → (Open) created by woldtwerk
Drupal\Core\Render\Component\Exception\InvalidComponentException: [attributes] String value found, but an object is required in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).
Fresh drupal with new navigation and ui_patterns module. Not sure why it doesn't trow without ui_patterns.
In core/modules/navigation/layouts/navigation.html.twig there is an include to the sdc. Attributes are passed, but there are no attributes defined on the sdc:
core/modules/navigation/components/toolbar-button/toolbar-button.component.yml
add attributes to core/modules/navigation/components/toolbar-button/toolbar-button.component.yml
Active
11.0 🔥
navigation.module