Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
here are some first classes https://github.com/fago/rules/tree/feature/context/src/Context, right now it extends most core classes and interfaces related to context. It's mostly compatible to core interfaces right now, as it mostly overrides @return and @throws documentation.
I'll work now on a rules condition base class and a prototype on how this context system could be used.
Comments
Comment #1
dasjoComment #2
fagoI've started working on a context system based on the core context interface, see https://github.com/fago/rules/tree/feature/context
WIP
Comment #3
fagohere are some first classes https://github.com/fago/rules/tree/feature/context/src/Context, right now it extends most core classes and interfaces related to context. It's mostly compatible to core interfaces right now, as it mostly overrides @return and @throws documentation.
I'll work now on a rules condition base class and a prototype on how this context system could be used.
Comment #4
fagoHere is a first working PR, having a ContextDefinition class + interface and a new RulesConditionbase: https://github.com/fago/rules/pull/27
Comment #5
fagoMerged that PR, context mapping and adding a RulesContextDefinitonInterface + class for Rules specific stuff is next.
Comment #7
klausiI think this is fixed now, we have basic context mapping and paramter configuration.