- Issue created by @mjchadwick
- πΊπΈUnited States mjchadwick
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.