States: reading and writing from and to Drupal's state system helps to persist some data for later use, even if this is required over a longer timeframe.To avoid overwhelming logs just from ECA, you can configure the level of log information coming from ECA with a single setting, defaulting to error messages and exceptions only. It depends on your own setup, if that logging information is being written to watchdog, syslog or elsewhere. Logging: everything in ECA is built to provide detailed log information, which is written to Drupal's logger service.If you provide a list of objects instead of a single instance, then ECA automatically loops over each of them with the subsequent actions in the process model. Loops: by default, actions in an ECA model operate on some data object, which often is something like a content entity, a route, an HTTP request or any other arbitrary value.Caching: all ECA models get cached in a special way such that ECA can determine, with almost no overhead, whether any of the triggered events in your Drupal site needed to be processed by ECA.This not only makes each process predictable, but also allows to forward the current context into the queue, should a model want to process actions asynchronously. Context Stacks: each process triggered by any event as well as any action of such processes get executed within their own (stackable) context, so that ECA can restore the context after execution to the state it was right before processing.Additionally, ECA has baked-in support for crucial APIs and functionality, that needs highlighting: With all the submodules enumerated above, you already get comprehensive lists of events, conditions and actions from either ECA or from Drupal core. This is intentional so that you can easily onboard ECA without the requirement to have any other components being installed or enabled. Note that all of ECA depends solely on Drupal core and the new remarkable Context Stack module from Max, which we extracted from the ECA code base simply because its functionality is useful for other tools too.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |