[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/twig-bridge/Extension/ -> WebLinkExtension.php (summary)

(no description)

File Size: 139 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WebLinkExtension:: (8 methods):
  __construct()
  getFunctions()
  link()
  preload()
  dnsPrefetch()
  preconnect()
  prefetch()
  prerender()


Class: WebLinkExtension  - X-Ref

Twig extension for the Symfony WebLink component.

__construct(RequestStack $requestStack)   X-Ref
No description

getFunctions()   X-Ref
{@inheritdoc}


link($uri, $rel, array $attributes = [])   X-Ref
Adds a "Link" HTTP header.

param: string $uri        The relation URI
param: string $rel        The relation type (e.g. "preload", "prefetch", "prerender" or "dns-prefetch")
param: array  $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
return: string The relation URI

preload($uri, array $attributes = [])   X-Ref
Preloads a resource.

param: string $uri        A public path
param: array  $attributes The attributes of this link (e.g. "['as' => true]", "['crossorigin' => 'use-credentials']")
return: string The path of the asset

dnsPrefetch($uri, array $attributes = [])   X-Ref
Resolves a resource origin as early as possible.

param: string $uri        A public path
param: array  $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
return: string The path of the asset

preconnect($uri, array $attributes = [])   X-Ref
Initiates a early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).

param: string $uri        A public path
param: array  $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
return: string The path of the asset

prefetch($uri, array $attributes = [])   X-Ref
Indicates to the client that it should prefetch this resource.

param: string $uri        A public path
param: array  $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
return: string The path of the asset

prerender($uri, array $attributes = [])   X-Ref
Indicates to the client that it should prerender this resource .

param: string $uri        A public path
param: array  $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
return: string The path of the asset



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1