original_string: public function get_settings_url() {
          $section = $this->get_settings_section_name();
          if ($section === null) {
              return null;
          }
          $settings = admin_get_root()->locate($section);
          if ($settings && $settings instanceof \admin_settingpage) {
              return new moodle_url('/admin/settings.php', array('section' => $section));
          } else if ($settings && $settings instanceof \admin_externalpage) {
              return new moodle_url($settings->url);
          } else {
              return null;
          }
      }
code: public function get_settings_url() {
          $section = $this->get_settings_section_name();
          if ($section === null) {
              return null;
          }
          $settings = admin_get_root()->locate($section);
          if ($settings && $settings instanceof \admin_settingpage) {
              return new moodle_url('/admin/settings.php', array('section' => $section));
          } else if ($settings && $settings instanceof \admin_externalpage) {
              return new moodle_url($settings->url);
          } else {
              return null;
          }
      }
code_tokens: public function get_settings_url ( ) { $ section = $ this -> get_settings_section_name ( ) ; if ( $ section === null ) { return null ; } $ settings = admin_get_root ( ) -> locate ( $ section ) ; if ( $ settings && $ settings instanceof \ admin_settingpage ) { return new moodle_url ( '/admin/settings.php' , array ( 'section' => $ section ) ) ; } else if ( $ settings && $ settings instanceof \ admin_externalpage ) { return new moodle_url ( $ settings -> url ) ; } else { return null ; } }
docstring: Returns the URL of the plugin settings screen
  
  Null value means that the plugin either does not have the settings screen
  or its location is not available via this library.
  
  @return null|moodle_url
docstring_tokens: Returns the URL of the plugin settings screen