Documentation

TwigTokenParserLink extends AbstractTokenParser
in package

Adds a link to the document. First parameter is always value of `rel` without quotes.

{% link icon 'theme://images/favicon.png' priority: 20 with { type: 'image/png' } %} {% link modulepreload 'plugin://grav-plugin/build/js/vendor.js' %}

Table of Contents

Properties

$rel  : mixed

Methods

getTag()  : string
Gets the tag name associated with this token parser.
parse()  : TwigNodeLink
Parses a token and returns a node.
parseArguments()  : array<string|int, mixed>

Properties

$rel

protected mixed $rel = ['alternate', 'author', 'dns-prefetch', 'help', 'icon', 'license', 'next', 'pingback', 'preconnect', 'prefetch', 'preload', 'prerender', 'prev', 'search', 'stylesheet']

Methods

getTag()

Gets the tag name associated with this token parser.

public getTag() : string
Return values
string

The tag name

parseArguments()

protected parseArguments(Token $token) : array<string|int, mixed>
Parameters
$token : Token
Return values
array<string|int, mixed>

        
On this page

Search results