W3cubDocs

/Symfony 4.1

RoutableFragmentRenderer

abstract class RoutableFragmentRenderer implements FragmentRendererInterface

Adds the possibility to generate a fragment URI for a given Controller.

Methods

setFragmentPath(string $path)

Sets the fragment path that triggers the fragment listener.

string generateFragmentUri(ControllerReference $reference, Request $request, bool $absolute = false, bool $strict = true)

Generates a fragment URI for a given controller.

Details

setFragmentPath(string $path)

Sets the fragment path that triggers the fragment listener.

Parameters

string $path The path

See also

FragmentListener

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

Generates a fragment URI for a given controller.

Parameters

ControllerReference $reference A ControllerReference instance
Request $request A Request instance
bool $absolute Whether to generate an absolute URL or not
bool $strict Whether to allow non-scalar attributes or not

Return Value

string A fragment URI

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/Fragment/RoutableFragmentRenderer.html