Symfony\Component\HttpKernel\Fragment\FragmentHandler::render
Renders a URI and returns the Response content.
Available options: * ignore_errors: true to return an empty string in case of an error
Signature
public function render(string|ControllerReference
$uri,
[string
$renderer = 'inline',
array
$options] )
Parameters
$uri
— object- A URI as a string or a ControllerReference instance
$renderer
— string- The renderer name
$options
— array- An array of options
Returns
- string|null
- The Response content or null when the Response is streamed
Errors/Exceptions
-
InvalidArgumentException
- when the renderer does not exist
-
RuntimeException
- when the Response is not successful