Hot answers tagged

4 votes

How do I perform a "contains" match with #states?

You can use the 'Pattern' trigger which can be a string or regular expression. textfield: '#type': textfield '#title': textfield '#description': 'Enter a value that contains the letter a.' ...
  • 4,375
2 votes
Accepted

How can I send an email if there are any change in fieldname values (example email, stats of task) by checking from existing database

If I understand your question correctly, you need to know what has been changed when an entity is updated. You can do that using hook_entity_update() or hook_ENTITY_TYPE_update(): This hook runs once ...
  • 1,792

Only top scored, non community-wiki answers of a minimum length are eligible