public function prepend($text, $url=null, $type=null, $shorttext=null, $key=null, pix_icon $icon=null) {
        $children = $this->children;
        $childrenclass = get_class($children);
        $this->children = new $childrenclass;
        $node = $this->add($text, $url, $type, $shorttext, $key, $icon);
        foreach ($children as $child) {
            $this->children->add($child);
        }
        return $node;
    }
public function prepend($text, $url=null, $type=null, $shorttext=null, $key=null, pix_icon $icon=null) {
        $children = $this->children;
        $childrenclass = get_class($children);
        $this->children = new $childrenclass;
        $node = $this->add($text, $url, $type, $shorttext, $key, $icon);
        foreach ($children as $child) {
            $this->children->add($child);
        }
        return $node;
    }
public function prepend ( $ text , $ url = null , $ type = null , $ shorttext = null , $ key = null , pix_icon $ icon = null ) { $ children = $ this -> children ; $ childrenclass = get_class ( $ children ) ; $ this -> children = new $ childrenclass ; $ node = $ this -> add ( $ text , $ url , $ type , $ shorttext , $ key , $ icon ) ; foreach ( $ children as $ child ) { $ this -> children -> add ( $ child ) ; } return $ node ; }
This function allows the user to add something to the start of the settings
navigation, which means it will be at the top of the settings navigation block

@param string $text text to be used for the link.
@param string|moodle_url $url url for the new node
@param int $type the type of node navigation_node::TYPE_*
@param string $shorttext
@param string|int $key a key to access the node by.
@param pix_icon $icon An icon that appears next to the node.
@return navigation_node $node with the new node added to it.
This function allows the user to add something to the start of the settings navigation which means it will be at the top of the settings navigation block