AsseticBundle\View\Helper\Asset::getScriptTag PHP Method

getScriptTag() protected method

protected getScriptTag ( $path, array $options = [] ) : string
$path
$options array
return string
    protected function getScriptTag($path, array $options = [])
    {
        $type = isset($options['type']) && !empty($options['type']) ? $options['type'] : 'text/javascript';
        return '<script type="' . $this->escape($type) . '" src="' . $this->escape($path) . '"></script>';
    }