Problem/Motivation

We still need to work a little bit on normalization, see related issues.

errors are like :

Drupal\Core\Render\Component\Exception\InvalidComponentException: [items[1].title] Object value found, but a string is required in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

just_like_good_vibes created an issue. See original summary.

grimreaper’s picture

pdureau’s picture

Title: LinkPropType normalization...suite » [2.0.0-beta6] LinkPropType normalization...suite
just_like_good_vibes’s picture

Title: [2.0.0-beta6] LinkPropType normalization...suite » [2.0.0-beta6] Normalization...suite

just_like_good_vibes’s picture

Assigned: just_like_good_vibes » Unassigned
Status: Active » Needs review

new additions with feedback from multiple persons :) thank you all

just_like_good_vibes’s picture

just_like_good_vibes’s picture

And finally, i have corrected and give more strength to our normalization processes.

My advice, is that we could be more systematic to this approach, and factorize code a lot to do that process of "cleaning" what is injected into the components.
but, well, let's continue for now with that version, which seems to cope well with all our the submitted problematic usecases (i hope i did not forget any).

just_like_good_vibes’s picture

Status: Needs review » Fixed
steveoriol’s picture

It works :-)
Thanks @just_like_good_vibes

just_like_good_vibes’s picture

thanks for the feedback :)

grimreaper’s picture

Hi,

Thanks, all my test cases are ok now \o/

just_like_good_vibes’s picture

great!

pdureau’s picture

Status: Fixed » Closed (fixed)