src/Html/Head/Link.php
public function render()
    {
        $htmlContent = '';
        foreach (self::$linkList->toArray() as $link) {
            $htmlContent .= '<link href="' . $link[0] . '"';
            if (!empty($link[1])) {
                $htmlContent .= ' rel="' . $link[1] . '"';
            }
            if (!empty($link[2])) {
                $htmlContent .= ' type="' . $link[2] . '"';
            }
            if (!empty($link[3])) {
                $htmlContent .= ' media="' . $link[3] . '"';
            }
            $htmlContent .= '>' . PHP_EOL;
        }
        return $htmlContent;
    }
public function render()
    {
        $htmlContent = '';
        foreach (self::$linkList->toArray() as $link) {
            $htmlContent .= '<link href="' . $link[0] . '"';
            if (!empty($link[1])) {
                $htmlContent .= ' rel="' . $link[1] . '"';
            }
            if (!empty($link[2])) {
                $htmlContent .= ' type="' . $link[2] . '"';
            }
            if (!empty($link[3])) {
                $htmlContent .= ' media="' . $link[3] . '"';
            }
            $htmlContent .= '>' . PHP_EOL;
        }
        return $htmlContent;
    }
public function render ( ) { $ htmlContent = '' ; foreach ( self :: $ linkList -> toArray ( ) as $ link ) { $ htmlContent .= '<link href="' . $ link [ 0 ] . '"' ; if ( ! empty ( $ link [ 1 ] ) ) { $ htmlContent .= ' rel="' . $ link [ 1 ] . '"' ; } if ( ! empty ( $ link [ 2 ] ) ) { $ htmlContent .= ' type="' . $ link [ 2 ] . '"' ; } if ( ! empty ( $ link [ 3 ] ) ) { $ htmlContent .= ' media="' . $ link [ 3 ] . '"' ; } $ htmlContent .= '>' . PHP_EOL ; } return $ htmlContent ; }
Return HTML code for initialize all link in link list

@since   1.0
@return  string Html code to initialize link
Return HTML code for initialize all link in link list