HIncludeFragmentRenderer
class HIncludeFragmentRenderer extends RoutableFragmentRenderer
Implements the Hinclude rendering strategy.
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.
__construct(EngineInterface|Environment $templating = null, UriSigner $signer = null, string $globalDefaultTemplate = null, string $charset = 'utf-8')
No description
setTemplating(EngineInterface|Environment|null $templating)
Sets the templating engine to use to render the default content.
bool
hasTemplating()
Checks if a templating engine has been set.
render(string|ControllerReference $uri, Request $request, array $options = array())
Renders a URI and returns the Response content.
string
getName()
Gets the name of the strategy.
Details
protected string
generateFragmentUri(ControllerReference $reference, Request $request, bool $absolute = false, bool $strict = true)
Generates a fragment URI for a given controller.
__construct(EngineInterface|Environment $templating = null, UriSigner $signer = null, string $globalDefaultTemplate = null, string $charset = 'utf-8')
setTemplating(EngineInterface|Environment|null $templating)
Sets the templating engine to use to render the default content.
Response
render(string|ControllerReference $uri, Request $request, array $options = array())
Renders a URI and returns the Response content.