Problem/Motivation

They may have some errors with attributes management in LinksPropType (for example, when used in a view pager) & AttributesPropType

For AttributesPropType at least:

Drupal\Core\Render\Component\Exception\InvalidComponentException: [attributes] String value found, but an object is required

Found in USWDS & DaisyUI themes.

Proposed resolution

Unfortunately, I was never able to reproduce those errors on my local environment. So, let's investigate fist.

ui_patterns_devel is catching those errors, so it needs to be disabled before investigation.

Careful, because Olivier is currently doing the tests of the exact same plugins: #3469665: [2.0.0-rc1] Test PropTypeInterface::normalize()

This ticket is also the opportunity to do this: #3469755: Links normalize drops link options

Comments

pdureau created an issue. See original summary.

grimreaper’s picture

Add proper reference to the UI Patterns Settings isue.

pdureau’s picture

Assigned: Unassigned » pdureau
pdureau’s picture

Issue summary: View changes

Drupal\Core\Render\Component\Exception\InvalidComponentException: [attributes] String value found, but an object is required was also found while working on #3470231: [2.0.0-beta2] Attributes normalization

Unfortunately, only by the gitlab pipeline, while running phpunit. I am still not able to reproduce it locally, even running the same test.

pdureau’s picture

Assigned: pdureau » Unassigned
Status: Active » Closed (duplicate)