public function url()
    {
        // If the item has a link proceed:
        if (!is_null($this->link)) {
            // If item's link has `href` property explicitly defined
            // return it
            if ($this->link->href) {
                return $this->link->href;
            }

            // Otherwise dispatch to the proper address
            return $this->builder->dispatch($this->link->path);
        }
    }
public function url()
    {
        // If the item has a link proceed:
        if (!is_null($this->link)) {
            // If item's link has `href` property explicitly defined
            // return it
            if ($this->link->href) {
                return $this->link->href;
            }

            // Otherwise dispatch to the proper address
            return $this->builder->dispatch($this->link->path);
        }
    }
public function url ( ) { // If the item has a link proceed: if ( ! is_null ( $ this -> link ) ) { // If item's link has `href` property explicitly defined // return it if ( $ this -> link -> href ) { return $ this -> link -> href ; } // Otherwise dispatch to the proper address return $ this -> builder -> dispatch ( $ this -> link -> path ) ; } }
Generate URL for link.

@return string
Generate URL for link .