I am working on node_import module. I encounter the issue that I need to validate nodes I wish to import, but the only way to do this is to call node_validate which calls form_set_error as a means of registering errors. hook_validate follows a similar approach. If we could decouple the validation of nodes from node error reporting mechanism, I could have flexibility in validating the nodes I create outside of the form system. Similarly I would like to create a workflow / process to change 1 node to one of another type. Again same issue.
Thanks
Comments
Comment #1
LAsan commentedComment #2
marcingy commentedComment #3
attiks commentedI created #1845546: Implement validation for the TypedData API to try to solve this on all levels, since there are only 10 days left, we need to figure out what needs to be done before feature freeze and what can be done later.
Comment #4
pasquallehttps://drupal.org/node/2015613
In Drupal 8 Entity validation is moved to a separate Entity validation API and decoupled from form validation.