page.php
public function getUrlById($id)
    {
        foreach ($this->links as $link) {
            if ($link->getAttribute('id') === (string) $id) {
                return $this->getUrlFromLink($link);
            }
        }

        return false;
    }
public function getUrlById($id)
    {
        foreach ($this->links as $link) {
            if ($link->getAttribute('id') === (string) $id) {
                return $this->getUrlFromLink($link);
            }
        }

        return false;
    }
Accessor for a URL by the id attribute.

@param string $id       Id attribute of link.

@return SimpleUrl       URL with that id of false if none.