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

LAsan’s picture

Version: x.y.z » 7.x-dev
Priority: Normal » Minor
marcingy’s picture

Version: 7.x-dev » 8.x-dev
Priority: Minor » Normal
attiks’s picture

I 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.

pasqualle’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

https://drupal.org/node/2015613
In Drupal 8 Entity validation is moved to a separate Entity validation API and decoupled from form validation.