public function getPageCanonical()
    {
        if (!$this->parser) {
            return;
        }

        $node = $this->parser->find('link[rel=canonical]', 0);

        if ($node) {
            return $node->getAttribute('href');
        }
    }
public function getPageCanonical()
    {
        if (!$this->parser) {
            return;
        }

        $node = $this->parser->find('link[rel=canonical]', 0);

        if ($node) {
            return $node->getAttribute('href');
        }
    }
public function getPageCanonical ( ) { if ( ! $ this -> parser ) { return ; } $ node = $ this -> parser -> find ( 'link[rel=canonical]' , 0 ) ; if ( $ node ) { return $ node -> getAttribute ( 'href' ) ; } }
Get page canonical url

@return string url
Get page canonical url