plugin('translate'); // Prepare the resource class query. $ids = isset($query['resource_class_id']) ? $query['resource_class_id'] : []; if (!is_array($ids)) { $ids = [$ids]; } $ids = array_filter($ids); if (!$ids) { $ids = [null]; } ?>