yii\helpers\BaseHtml::script PHP Метод

script() публичный статический Метод

Generates a script tag.
public static script ( string $content, array $options = [] ) : string
$content string the script content
$options array the tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered. See [[renderTagAttributes()]] for details on how attributes are being rendered.
Результат string the generated script tag
    public static function script($content, $options = [])
    {
        return static::tag('script', $content, $options);
    }