source/php/Module/Event/Event.php
public function getAgeFilterRange($moduleId): array
    {
        $years = array();
        $from = (int)get_field('mod_event_filter_age_range_from', $moduleId);
        $to = (int)get_field('mod_event_filter_age_range_to', $moduleId);

        if ($from < $to) {
            foreach (range($from, $to) as $value) {
                $years[] = array(
                    'value' => $value,
                    'checked' => false,
                );
            }
        }

        return $years;
    }
public function getAgeFilterRange($moduleId): array
    {
        $years = array();
        $from = (int)get_field('mod_event_filter_age_range_from', $moduleId);
        $to = (int)get_field('mod_event_filter_age_range_to', $moduleId);

        if ($from < $to) {
            foreach (range($from, $to) as $value) {
                $years[] = array(
                    'value' => $value,
                    'checked' => false,
                );
            }
        }

        return $years;
    }
Return list with filterable ages
@param int $moduleId The module ID
@return array