public static function SubmitButtonRules::configurationFormRuleExists in Flexiform 8
Form Check For whether the rule exists.
I made this static because something about the serialization wasn't working.
File
- contrib/
rules/ src/ Plugin/ FormEnhancer/ SubmitButtonRules.php, line 287
Class
- SubmitButtonRules
- A flexiform enhancer to trigger rules on submission.
Namespace
Drupal\flexiform_rules\Plugin\FormEnhancerCode
public static function configurationFormRuleExists($name) {
return (bool) \Drupal::service('entity_type.manager')
->getStorage('rules_component')
->load($name);
}