Skip to main content
9 events
when toggle format what by license comment
Jul 2, 2020 at 8:56 vote accept miststudent2011
Jul 2, 2020 at 8:56 answer added miststudent2011 timeline score: 2
Jun 22, 2020 at 16:06 comment added miststudent2011 Hi @4k4 I am completely lost can you please share a code snippet or any reference contrib module so that I can have a look. I also added additional debug info to the question, can you please have a look ?
Jun 22, 2020 at 16:04 history edited miststudent2011 CC BY-SA 4.0
debugging info added.
Jun 22, 2020 at 15:43 comment added 4uk4 A constraint with validate($entity) has to be attached to an entity, not a field. Besides from being an entity or field constraint you attach it to a paragraph and then expect that it has a node field.
Jun 22, 2020 at 14:16 comment added miststudent2011 Hi @4k4 thank you for your response. Are you referring to use hook_entity_type_alter ? If so isnt it is for whole entity type and not for a specific field in entity type ? Can you please elaborate what you re referring to ?
Jun 22, 2020 at 14:01 history edited avpaderno
edited tags
Jun 22, 2020 at 12:57 comment added 4uk4 Your constraint is receiving an entity, then you need to add it to the entity type, see drupal.stackexchange.com/questions/224229/…
Jun 22, 2020 at 12:32 history asked miststudent2011 CC BY-SA 4.0