Any idea how long this will take to backport to Drupal 9?
I figured it out!
In case anyone else wanted to know:
1. In your theme or module code, add a reference to SmartDateRule:
use Drupal\smart_date_recur\Entity\SmartDateRule;
2. Grab the recurring rule ID:
$rule = $node->[smart_date_field_machine_name][0]->get('rrule')->getValue();
3. Load the SmartDateRule using that ID:
$rrule = SmartDateRule::load($rule);
4. Grab the freq property
$freq = $rrule->get('freq')->value;
I did some further futzing to get my final output, but that was the key for me.
mjchadwick β created an issue.
When I try to use this patch (which fails via composer, but seems to work if you manually hack the module), I get the new arguments in contextual filters, but if I try to use one of them I get a "The handler for this item is broken or missing" error.
I did a cache clear for v3.1.0 and then started getting the memory error message reported by @vmb.
I just updated to v3.1.1 and both bugs have been fixed. Thanks!
mjchadwick β created an issue.