protected function mobile_configuration_warning($mobileconfigured) {
        $output = '';
        if (!$mobileconfigured) {
            $settingslink = new moodle_url('/admin/settings.php', ['section' => 'mobilesettings']);
            $configurebutton = $this->single_button($settingslink, get_string('enablemobilewebservice', 'admin'));
            $output .= $this->warning(get_string('mobilenotconfiguredwarning', 'admin') . '&nbsp;' . $configurebutton);
        }

        return $output;
    }