public function addIcon($href)
    {
        // Build the normal icon
        $icon = $this->getHTMLFactory()->buildLink('icon', $href);
        $this->appendToHead($icon);

        // Build the shortcut icon
        $shortIcon = $this->getHTMLFactory()->buildLink('shortcut icon', $href);
        $this->appendToHead($shortIcon);

        return $this;
    }
public function addIcon($href)
    {
        // Build the normal icon
        $icon = $this->getHTMLFactory()->buildLink('icon', $href);
        $this->appendToHead($icon);

        // Build the shortcut icon
        $shortIcon = $this->getHTMLFactory()->buildLink('shortcut icon', $href);
        $this->appendToHead($shortIcon);

        return $this;
    }
public function addIcon ( $ href ) { // Build the normal icon $ icon = $ this -> getHTMLFactory ( ) -> buildLink ( 'icon' , $ href ) ; $ this -> appendToHead ( $ icon ) ; // Build the shortcut icon $ shortIcon = $ this -> getHTMLFactory ( ) -> buildLink ( 'shortcut icon' , $ href ) ; $ this -> appendToHead ( $ shortIcon ) ; return $ this ; }
Inserts a page icon.
It covers both 'icon' and 'shortcut icon'.

@param string $href The icon URL

@return $this
@throws InvalidArgumentException
Inserts a page icon . It covers both icon and shortcut icon .