private static function base_options($includenotset = true, $includeinherit = true) {

        $options = [];

        if ($includenotset) {
            $options[\tool_dataprivacy\context_instance::NOTSET] = get_string('notset', 'tool_dataprivacy');
        }

        if ($includeinherit) {
            $options[\tool_dataprivacy\context_instance::INHERIT] = get_string('inherit', 'tool_dataprivacy');
        }

        return $options;
    }
private static function base_options($includenotset = true, $includeinherit = true) {

        $options = [];

        if ($includenotset) {
            $options[\tool_dataprivacy\context_instance::NOTSET] = get_string('notset', 'tool_dataprivacy');
        }

        if ($includeinherit) {
            $options[\tool_dataprivacy\context_instance::INHERIT] = get_string('inherit', 'tool_dataprivacy');
        }

        return $options;
    }
private static function base_options ( $ includenotset = true , $ includeinherit = true ) { $ options = [ ] ; if ( $ includenotset ) { $ options [ \ tool_dataprivacy \ context_instance :: NOTSET ] = get_string ( 'notset' , 'tool_dataprivacy' ) ; } if ( $ includeinherit ) { $ options [ \ tool_dataprivacy \ context_instance :: INHERIT ] = get_string ( 'inherit' , 'tool_dataprivacy' ) ; } return $ options ; }
Base not set and inherit options.

@param bool $includenotset
@param bool $includeinherit
@return array
Base not set and inherit options .