ifthenelse-8.x-1.x-dev-no-core/modules/custom/if_then_else_default_rule/config/install/if_then_else.ifthenelserule.send_email_when_comment_is_posted_to_author.yml
modules/custom/if_then_else_default_rule/config/install/if_then_else.ifthenelserule.send_email_when_comment_is_posted_to_author.yml
uuid: c8ee1bd1-066e-4112-a65e-0f4eebaa0b36 langcode: en status: true dependencies: { } id: send_email_when_comment_is_posted_to_author label: 'Send Email When Comment Is Posted To Author' active: 1 module: ifthenelse event: after_saving_new_entity_event condition: 'after_saving_new_entity_event::entity::comment::comment' data: '{"id":"demo@0.1.0","nodes":{"1":{"id":1,"data":{"type":"event","class":"Drupal\\if_then_else\\core\\Nodes\\Events\\AfterSavingNewEntityEvent\\AfterSavingNewEntityEvent","name":"after_saving_new_entity_event","selection":"list","selected_bundle":{"label":"Default comments","value":"comment"},"selected_entity":{"label":"Comment","value":"comment"}},"inputs":{},"outputs":{"success":{"connections":[]},"entity":{"connections":[{"node":2,"input":"entity","data":{}}]}},"position":[-780.0744211281561,-355.81763883844684],"name":"Event: After Saving New Entity"},"2":{"id":2,"data":{"type":"action","class":"Drupal\\if_then_else\\core\\Nodes\\Actions\\GetEntityFieldAction\\GetEntityFieldAction","name":"get_entity_field_action","form_fields":{"name":"Entity ID","code":"entity_id"},"selected_entity":{"name":"Comment","code":"comment"},"selected_bundle":{"name":"Default comments","code":"comment"},"field_type":"entity_reference"},"inputs":{"execute":{"connections":[]},"entity":{"connections":[{"node":1,"output":"entity","data":{}}]}},"outputs":{"success":{"connections":[]},"field_value":{"connections":[{"node":3,"input":"data","data":{}}]}},"position":[-455.0224380906107,-395.9208344177206],"name":"Action: Get Entity Field Value"},"3":{"id":3,"data":{"type":"value","class":"Drupal\\if_then_else\\core\\Nodes\\Values\\EntityValue\\EntityValue","name":"entity_value","selected_entity":{"label":"Content","value":"node"},"entityId":"","input_selection":"input"},"inputs":{"execute":{"connections":[]},"data":{"connections":[{"node":2,"output":"field_value","data":{}}]}},"outputs":{"success":{"connections":[]},"entity":{"connections":[{"node":4,"input":"entity","data":{}}]}},"position":[-156.64198807259004,-383.38341482346726],"name":"Value: Entity"},"4":{"id":4,"data":{"type":"action","class":"Drupal\\if_then_else\\core\\Nodes\\Actions\\GetEntityFieldAction\\GetEntityFieldAction","name":"get_entity_field_action","form_fields":{"name":"User ID","code":"uid"},"selected_entity":{"name":"Content","code":"node"},"selected_bundle":{"name":"Article","code":"article"},"field_type":"entity_reference"},"inputs":{"execute":{"connections":[]},"entity":{"connections":[{"node":3,"output":"entity","data":{}}]}},"outputs":{"success":{"connections":[]},"field_value":{"connections":[{"node":5,"input":"data","data":{}}]}},"position":[126.04260202446741,-379.24561544538193],"name":"Action: Get Entity Field Value"},"5":{"id":5,"data":{"type":"value","class":"Drupal\\if_then_else\\core\\Nodes\\Values\\EntityValue\\EntityValue","name":"entity_value","selected_entity":{"label":"User","value":"user"},"entityId":"","input_selection":"input"},"inputs":{"execute":{"connections":[]},"data":{"connections":[{"node":4,"output":"field_value","data":{}}]}},"outputs":{"success":{"connections":[]},"entity":{"connections":[{"node":6,"input":"entity","data":{}}]}},"position":[466.222915473482,-351.80614077068003],"name":"Value: Entity"},"6":{"id":6,"data":{"type":"action","class":"Drupal\\if_then_else\\core\\Nodes\\Actions\\GetEntityFieldAction\\GetEntityFieldAction","name":"get_entity_field_action","form_fields":{"name":"Email","code":"mail"},"selected_entity":{"name":"User","code":"user"},"selected_bundle":{"name":"User","code":"user"},"field_type":"email"},"inputs":{"execute":{"connections":[]},"entity":{"connections":[{"node":5,"output":"entity","data":{}}]}},"outputs":{"success":{"connections":[]},"field_value":{"connections":[{"node":7,"input":"to","data":{}}]}},"position":[737.8679845777485,-366.8821512911243],"name":"Action: Get Entity Field Value"},"7":{"id":7,"data":{"type":"action","class":"Drupal\\if_then_else\\core\\Nodes\\Actions\\SendEmailAction\\SendEmailAction","name":"send_email_action"},"inputs":{"execute":{"connections":[]},"to":{"connections":[{"node":6,"output":"field_value","data":{}}]},"from":{"connections":[{"node":8,"output":"text","data":{}}]},"subject":{"connections":[{"node":9,"output":"text","data":{}}]},"body":{"connections":[{"node":10,"output":"text","data":{}}]}},"outputs":{"success":{"connections":[]}},"position":[1068.5611418031285,-316.1086932875349],"name":"Action: Send Email"},"8":{"id":8,"data":{"type":"value","class":"Drupal\\if_then_else\\core\\Nodes\\Values\\TextValue\\TextValue","name":"text_value","value":"from@mailinator.com"},"inputs":{"execute":{"connections":[]},"input1":{"connections":[]},"input2":{"connections":[]},"input3":{"connections":[]},"input4":{"connections":[]},"input5":{"connections":[]}},"outputs":{"text":{"connections":[{"node":7,"input":"from","data":{}}]}},"position":[-190.69807349572562,128.3357683547394],"name":"Value: Text"},"9":{"id":9,"data":{"type":"value","class":"Drupal\\if_then_else\\core\\Nodes\\Values\\TextValue\\TextValue","name":"text_value","value":"Comment posted"},"inputs":{"execute":{"connections":[]},"input1":{"connections":[]},"input2":{"connections":[]},"input3":{"connections":[]},"input4":{"connections":[]},"input5":{"connections":[]}},"outputs":{"text":{"connections":[{"node":7,"input":"subject","data":{}}]}},"position":[183.7874884795096,154.39885143389915],"name":"Value: Text"},"10":{"id":10,"data":{"type":"value","class":"Drupal\\if_then_else\\core\\Nodes\\Values\\TextValue\\TextValue","name":"text_value","value":"New comment has been posted."},"inputs":{"execute":{"connections":[]},"input1":{"connections":[]},"input2":{"connections":[]},"input3":{"connections":[]},"input4":{"connections":[]},"input5":{"connections":[]}},"outputs":{"text":{"connections":[{"node":7,"input":"body","data":{}}]}},"position":[652.9232909486453,199.66634114583331],"name":"Value: Text"}},"comments":[]}' processed_data: 'a:3:{s:15:"execution_order";a:10:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"3";i:3;s:1:"4";i:4;s:1:"5";i:5;s:1:"6";i:6;s:1:"8";i:7;s:1:"9";i:8;s:2:"10";i:9;s:1:"7";}s:14:"precedent_nids";a:10:{i:1;a:0:{}i:2;a:1:{i:0;i:1;}i:3;a:2:{i:0;i:2;i:1;i:1;}i:4;a:3:{i:0;i:3;i:1;i:2;i:2;i:1;}i:5;a:4:{i:0;i:4;i:1;i:3;i:2;i:2;i:3;i:1;}i:6;a:5:{i:0;i:5;i:1;i:4;i:2;i:3;i:3;i:2;i:4;i:1;}i:7;a:9:{i:0;i:6;i:1;i:8;i:2;i:9;i:3;i:10;i:4;i:5;i:5;i:4;i:6;i:3;i:7;i:2;i:8;i:1;}i:8;a:0:{}i:9;a:0:{}i:10;a:0:{}}s:14:"dependent_nids";a:10:{i:1;a:6:{i:0;i:2;i:1;i:3;i:2;i:4;i:3;i:5;i:4;i:6;i:5;i:7;}i:2;a:5:{i:0;i:3;i:1;i:4;i:2;i:5;i:3;i:6;i:4;i:7;}i:3;a:4:{i:0;i:4;i:1;i:5;i:2;i:6;i:3;i:7;}i:4;a:3:{i:0;i:5;i:1;i:6;i:2;i:7;}i:5;a:2:{i:0;i:6;i:1;i:7;}i:6;a:1:{i:0;i:7;}i:7;a:0:{}i:8;a:1:{i:0;i:7;}i:9;a:1:{i:0;i:7;}i:10;a:1:{i:0;i:7;}}}' weight: null