AsseticBundle\View\Helper\Asset::getStylesheetTag PHP Метод

getStylesheetTag() защищенный Метод

protected getStylesheetTag ( $path, array $options = [] ) : string
$path
$options array
Результат string
    protected function getStylesheetTag($path, array $options = [])
    {
        $media = isset($options['media']) && !empty($options['media']) ? $options['media'] : 'screen';
        $type = isset($options['type']) && !empty($options['type']) ? $options['type'] : 'text/css';
        $rel = isset($options['rel']) && !empty($options['rel']) ? $options['rel'] : 'stylesheet';
        return '<link href="' . $this->escape($path) . '" media="' . $this->escape($media) . '" rel="' . $this->escape($rel) . '" type="' . $this->escape($type) . '">';
    }