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

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