protected function get_ratings_on_subcontext(\context $context, array $subcontext) {
        $writer = \core_privacy\local\request\writer::with_context($context);
        return $writer->get_related_data($subcontext, 'rating');
    }
protected function get_ratings_on_subcontext(\context $context, array $subcontext) {
        $writer = \core_privacy\local\request\writer::with_context($context);
        return $writer->get_related_data($subcontext, 'rating');
    }
protected function get_ratings_on_subcontext ( \ context $ context , array $ subcontext ) { $ writer = \ core_privacy \ local \ request \ writer :: with_context ( $ context ) ; return $ writer -> get_related_data ( $ subcontext , 'rating' ) ; }
Fetch all ratings on a subcontext.

@param   \context            $context    The context being stored.
@param   array               $subcontext The subcontext path to check.
@return  array
Fetch all ratings on a subcontext .