wmcmillian-coalmarch β created an issue.
re-rolled #4 for 10.2.x
Re-rolled #15 β¨ Add support for negating node type(content type) condition for block visibility Needs work for 10.2.1 and incorporated #20 β¨ Add support for negating node type(content type) condition for block visibility Needs work
I've re-rolled this and added this to the SectionDataNormalizer:
/**
* {@inheritdoc}
*/
protected $supportedInterfaceOrClass = SectionData::class;
This was causing an issue when normalizing/denormalizing entities with other typed data attached to them.
Oh, oops, forgot to include the claro support.
This patch has all of the above.
Here's a patch for some additions I made. This addresses the same issues as the fork, adds support for the claro theme, and hardens against any unsupported themes (defaults to using the template from stable).
Fixing a typo under "States based on values of multiple different fields"
The states array needs to be an index array of arrays rather than a keyed array with 'or' stuck as an index value in the middle, the way it was before it would be json_encoded as an object rather than an array which would then not be parsed correctly by the state js (ignoring the 'or' condition)