Timeline for Get Media entity field values in custom validation handler
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 14, 2017 at 10:21 | history | edited | arpitr | CC BY-SA 3.0 |
edited title
|
Jan 16, 2017 at 20:34 | vote | accept | arpitr | ||
Jan 16, 2017 at 20:34 | answer | added | arpitr | timeline score: 0 | |
Jan 16, 2017 at 20:26 | comment | added | arpitr | @ShreyaShetty paragraph is just like field collection with only difference lies in the type of widget it provides, with paragraph you can attach different paragraph entity bundles while field collection allows single type of field collection bundle. | |
Jan 16, 2017 at 20:20 | history | edited | arpitr | CC BY-SA 3.0 |
added 132 characters in body; edited tags
|
Jan 14, 2017 at 12:59 | history | edited | avpaderno♦ |
edited tags
|
|
Jan 13, 2017 at 13:06 | comment | added | Shreya Shetty | "paragraph is set of different fields" would you mind explaining this ?? I assume it to be a field collection | |
Jan 13, 2017 at 12:27 | comment | added | arpitr | The debug output is from validation so that is sure it is getting called, the getValue will return the value as shown in the output, however, paragraph is set of different fields, I am looking a way to get hold of nested values. | |
Jan 13, 2017 at 12:01 | comment | added | Shreya Shetty | $form_state->getValue('field_asset'); Have you tried this . Is your validation called ?? | |
Jan 13, 2017 at 11:59 | comment | added | Shreya Shetty | are you performing validation on node_content_type_edit_form ?? | |
Jan 13, 2017 at 11:57 | comment | added | arpitr | node is not created yet during form validation as it could be form edit/create. | |
Jan 13, 2017 at 11:56 | comment | added | Shreya Shetty | $node->field_asset->getValue() have you tried this. Have you tried to get value method ??. I am assuming your field to be a entity reference field with multiple values . | |
Jan 13, 2017 at 11:07 | history | edited | arpitr |
edited tags
|
|
Jan 13, 2017 at 10:48 | history | asked | arpitr | CC BY-SA 3.0 |