ifthenelse-8.x-1.x-dev-no-core/modules/contrib/if_then_else/modules/if_then_else_examples/config/install/if_then_else.ifthenelserule.validate_form_on_submission.yml
modules/contrib/if_then_else/modules/if_then_else_examples/config/install/if_then_else.ifthenelserule.validate_form_on_submission.yml
uuid: a8af6a62-aea9-4818-9ae8-a635f5ae1d6f langcode: en status: true dependencies: { } id: validate_form_on_submission label: 'Validate Form On Submission' active: 0 module: ifthenelse event: form_validate_event condition: 'form_validate_event::entity_form::node::page' data: '{"id":"demo@0.1.0","nodes":{"3":{"id":3,"data":{"type":"event","class":"Drupal\\if_then_else\\core\\Nodes\\Events\\FormValidateEvent\\FormValidateEvent","name":"form_validate_event","form_selection":"list","selected_bundle":{"label":"Basic page","value":"page"},"selected_entity":{"label":"Content","value":"node"}},"inputs":{},"outputs":{"success":{"connections":[]},"form":{"connections":[]},"form_state":{"connections":[{"node":8,"input":"form_state","data":{}},{"node":11,"input":"form_state","data":{}}]}},"position":[-472.515625,-207.75],"name":"Event: Form Validate"},"8":{"id":8,"data":{"type":"action","class":"Drupal\\if_then_else\\core\\Nodes\\Actions\\GetFieldValue\\GetFieldValue","name":"get_form_field_value_action","form_fields":{"name":"Title","code":"title"},"selected_entity":{"name":"Content","code":"node"},"selected_bundle":{"name":"Basic page","code":"page"},"field_type":"string"},"inputs":{"execute":{"connections":[]},"form_state":{"connections":[{"node":3,"output":"form_state","data":{}}]}},"outputs":{"success":{"connections":[]},"field_value":{"connections":[{"node":9,"input":"input1","data":{}}]}},"position":[-174.5021161843499,-269.574414349886],"name":"Action: Get Form Field Value"},"9":{"id":9,"data":{"type":"condition","class":"Drupal\\if_then_else\\core\\Nodes\\Conditions\\CompareStringInputs\\CompareStringInputs","name":"compare_string_inputs","compare_type":[{"name":"Equal","code":"equal"}]},"inputs":{"execute":{"connections":[]},"input1":{"connections":[{"node":8,"output":"field_value","data":{}}]},"input2":{"connections":[{"node":10,"output":"text","data":{}}]}},"outputs":{"success":{"connections":[{"node":11,"input":"execute","data":{}}]}},"position":[122.4872646772022,-249.70611184501774],"name":"Condition: Compare Two String Inputs"},"10":{"id":10,"data":{"type":"value","class":"Drupal\\if_then_else\\core\\Nodes\\Values\\TextValue\\TextValue","name":"text_value","value":"test"},"inputs":{"execute":{"connections":[]},"input1":{"connections":[]},"input2":{"connections":[]},"input3":{"connections":[]},"input4":{"connections":[]},"input5":{"connections":[]}},"outputs":{"text":{"connections":[{"node":9,"input":"input2","data":{}}]}},"position":[104.84776075781087,65.41736296272904],"name":"Value: Text"},"11":{"id":11,"data":{"type":"action","class":"Drupal\\if_then_else\\core\\Nodes\\Actions\\SetFormErrorAction\\SetFormErrorAction","name":"set_form_error_action","form_fields":[{"name":"Title","code":"title"}]},"inputs":{"execute":{"connections":[{"node":9,"output":"success","data":{}}]},"form_state":{"connections":[{"node":3,"output":"form_state","data":{}}]},"message":{"connections":[{"node":12,"output":"text","data":{}}]}},"outputs":{"success":{"connections":[]}},"position":[533.6396465467135,-163.0145892942375],"name":"Action: Set Form Error"},"12":{"id":12,"data":{"type":"value","class":"Drupal\\if_then_else\\core\\Nodes\\Values\\TextValue\\TextValue","name":"text_value","value":"Title should not be test"},"inputs":{"execute":{"connections":[]},"input1":{"connections":[]},"input2":{"connections":[]},"input3":{"connections":[]},"input4":{"connections":[]},"input5":{"connections":[]}},"outputs":{"text":{"connections":[{"node":11,"input":"message","data":{}}]}},"position":[-405.73375476894716,-47.817235457390254],"name":"Value: Text"}},"comments":[]}' processed_data: 'a:3:{s:15:"execution_order";a:6:{i:0;s:1:"3";i:1;s:1:"8";i:2;s:2:"10";i:3;s:2:"12";i:4;s:1:"9";i:5;s:2:"11";}s:14:"precedent_nids";a:6:{i:3;a:0:{}i:8;a:1:{i:0;i:3;}i:9;a:3:{i:0;i:8;i:1;i:10;i:2;i:3;}i:10;a:0:{}i:11;a:5:{i:0;i:9;i:1;i:3;i:2;i:12;i:3;i:8;i:4;i:10;}i:12;a:0:{}}s:14:"dependent_nids";a:6:{i:3;a:3:{i:0;i:8;i:1;i:11;i:2;i:9;}i:8;a:2:{i:0;i:9;i:1;i:11;}i:9;a:1:{i:0;i:11;}i:10;a:2:{i:0;i:9;i:1;i:11;}i:11;a:0:{}i:12;a:1:{i:0;i:11;}}}' weight: null