FileAccess Orion

HIncludeFragmentRenderer extends RoutableFragmentRenderer
in package

Implements the Hinclude rendering strategy.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$charset  : mixed
$fragmentPath  : mixed
$globalDefaultTemplate  : mixed
$signer  : mixed
$templating  : mixed
__construct()  : mixed
getName()  : mixed
{@inheritdoc}
hasTemplating()  : bool
Checks if a templating engine has been set.
render()  : mixed
{@inheritdoc}
setFragmentPath()  : mixed
Sets the fragment path that triggers the fragment listener.
generateFragmentUri()  : string
Generates a fragment URI for a given controller.
checkNonScalar()  : mixed
templateExists()  : bool

Properties

Methods

__construct()

public __construct([EngineInterface|Environment $templating = null ][, UriSigner $signer = null ][, string $globalDefaultTemplate = null ][, string $charset = 'utf-8' ]) : mixed
Parameters
$templating : EngineInterface|Environment = null

An EngineInterface or a Twig instance

$signer : UriSigner = null
$globalDefaultTemplate : string = null

The global default content (it can be a template name or the content)

$charset : string = 'utf-8'
Return values
mixed

hasTemplating()

Checks if a templating engine has been set.

public hasTemplating() : bool
Return values
bool

true if the templating engine has been set, false otherwise

render()

{@inheritdoc}

public render(mixed $uri, Request $request[, array<string|int, mixed> $options = [] ]) : mixed

Additional available options:

  • default: The default content (it can be a template name or the content)
  • id: An optional hx:include tag id attribute
  • attributes: An optional array of hx:include tag attributes
Parameters
$uri : mixed
$request : Request
$options : array<string|int, mixed> = []
Return values
mixed

setFragmentPath()

Sets the fragment path that triggers the fragment listener.

public setFragmentPath(string $path) : mixed
Parameters
$path : string

The path

Tags
see
FragmentListener
Return values
mixed

generateFragmentUri()

Generates a fragment URI for a given controller.

protected generateFragmentUri(ControllerReference $reference, Request $request[, bool $absolute = false ][, bool $strict = true ]) : string
Parameters
$reference : ControllerReference
$request : Request
$absolute : bool = false

Whether to generate an absolute URL or not

$strict : bool = true

Whether to allow non-scalar attributes or not

Return values
string

A fragment URI

checkNonScalar()

private checkNonScalar(array<string|int, mixed> $values) : mixed
Parameters
$values : array<string|int, mixed>
Return values
mixed

templateExists()

private templateExists(string $template) : bool
Parameters
$template : string
Return values
bool

Search results