MJML
class MJML extends Renderer
Properties
protected string | $format | ||
protected string | $extension | ||
protected array | $options | from Renderer | |
protected | $blob |
Methods
Sets the devicePixelRatio of the viewport
Waits until the entire document, including resources are fully loaded.
Waits until the 'DOMContentLoaded' event is fired.
Waits until there has not been any network requests for at least 500ms
Waits until there has not been more than 2 network requests for at least 500ms
Maximum amount of time to wait before timing out in milliseconds. Defaults to 30000
Get the rendered content as a blob
Retrieve the rendered content as a download response
Retrieve the rendered content as a response
Render from a view
Render from named route.
No description
Details
in
Renderer at line 50
protected
__construct(string $url, array $options = [])
in
Renderer at line 62
protected ResponseInterface
fetch()
in
Renderer at line 108
protected
getOption(string $key, $default = null)
in
Renderer at line 123
Renderer
devicePixelRatio(float $pixelRatio = 1.0)
Sets the devicePixelRatio of the viewport
in
Renderer at line 133
Renderer
waitUntilLoaded()
Waits until the entire document, including resources are fully loaded.
in
Renderer at line 143
Renderer
waitUntiDOMContentLoaded()
Waits until the 'DOMContentLoaded' event is fired.
in
Renderer at line 153
Renderer
waitUntiNetworkIdle()
Waits until there has not been any network requests for at least 500ms
in
Renderer at line 163
Renderer
waitUntiNetworkSettled()
Waits until there has not been more than 2 network requests for at least 500ms
in
Renderer at line 174
Renderer
timeout(int $timeout)
Maximum amount of time to wait before timing out in milliseconds. Defaults to 30000
in
Renderer at line 184
resource
stream()
Get the rendered content as a file handle (resource)
at line 34
string|null
blob()
Get the rendered content as a blob
in
Renderer at line 212
Response
download(string $filename = null)
Retrieve the rendered content as a download response
in
Renderer at line 237
Response
toResponse(Request $request = null)
Retrieve the rendered content as a response
in
Renderer at line 260
string
link()
Retrieve URL to the rendered content
in
Renderer at line 276
protected ResponseInterface
postProcess(ResponseInterface $response)
Postprocessing stage
at line 117
static Renderer
from(HtmlString|string $html)
Render from raw markup
at line 51
static Renderer
view(View|string $view, Arrayable|array $data = [], array $mergeData = [])
Render from a view
in
Renderer at line 336
static Renderer
route(array|string $name = null, mixed $parameters = [], bool $absolute = true)
Render from named route.