original_string: public function add_course_navigation($instancesnode, stdClass $instance) {
          if ($this->use_standard_editing_ui()) {
              $context = context_course::instance($instance->courseid);
              $cap = 'enrol/' . $instance->enrol . ':config';
              if (has_capability($cap, $context)) {
                  $linkparams = array('courseid' => $instance->courseid, 'id' => $instance->id, 'type' => $instance->enrol);
                  $managelink = new moodle_url('/enrol/editinstance.php', $linkparams);
                  $instancesnode->add($this->get_instance_name($instance), $managelink, navigation_node::TYPE_SETTING);
              }
          }
      }
code: public function add_course_navigation($instancesnode, stdClass $instance) {
          if ($this->use_standard_editing_ui()) {
              $context = context_course::instance($instance->courseid);
              $cap = 'enrol/' . $instance->enrol . ':config';
              if (has_capability($cap, $context)) {
                  $linkparams = array('courseid' => $instance->courseid, 'id' => $instance->id, 'type' => $instance->enrol);
                  $managelink = new moodle_url('/enrol/editinstance.php', $linkparams);
                  $instancesnode->add($this->get_instance_name($instance), $managelink, navigation_node::TYPE_SETTING);
              }
          }
      }
code_tokens: public function add_course_navigation ( $ instancesnode , stdClass $ instance ) { if ( $ this -> use_standard_editing_ui ( ) ) { $ context = context_course :: instance ( $ instance -> courseid ) ; $ cap = 'enrol/' . $ instance -> enrol . ':config' ; if ( has_capability ( $ cap , $ context ) ) { $ linkparams = array ( 'courseid' => $ instance -> courseid , 'id' => $ instance -> id , 'type' => $ instance -> enrol ) ; $ managelink = new moodle_url ( '/enrol/editinstance.php' , $ linkparams ) ; $ instancesnode -> add ( $ this -> get_instance_name ( $ instance ) , $ managelink , navigation_node :: TYPE_SETTING ) ; } } }
docstring: Adds navigation links into course admin block.
  
  By defaults looks for manage links only.
  
  @param navigation_node $instancesnode
  @param stdClass $instance
  @return void
docstring_tokens: Adds navigation links into course admin block .