diff options
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Default.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index 1f2e48994..ae7be6892 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -790,6 +790,21 @@ The MaPit types this site handles sub area_types { FixMyStreet->config('MAPIT_TYPES') || [ 'ZZZ' ] } sub area_types_children { FixMyStreet->config('MAPIT_TYPES_CHILDREN') || [] } +=item fetch_area_children + +Fetches the children of a particular MapIt area ID that match the current +cobrand's area_types_children type. + +=cut + +sub fetch_area_children { + my ($self, $area_id) = @_; + + return FixMyStreet::MapIt::call('area/children', $area_id, + type => $self->area_types_children + ); +} + =item contact_name, contact_email Return the contact name or email for the cobranded version of the site (to be |