ErrorPages
class ErrorPages
Properties
| protected HeadData | $defaults | ||
| protected HeadData> | $statuses |
Methods
Define head metadata for every error page, using either named route-attribute values or a single head builder callback.
Define head metadata for a specific error status, using either named route-attribute values or a single head builder callback.
Details
at line 23
__construct(TagRegistry $registry, Closure $define)
Create the error page definitions.
at line 36
ErrorPages
defaults(mixed ...$head)
Define head metadata for every error page, using either named route-attribute values or a single head builder callback.
On the shared manager's error pages, these defaults apply to every request in the worker.
at line 50
ErrorPages
status(int $status, mixed ...$head)
Define head metadata for a specific error status, using either named route-attribute values or a single head builder callback.
On the shared manager's error pages, these definitions apply to every request in the worker.
at line 61
HeadData|null
forStatus(int $status)
Get the merged error head data for a status, or null when none is defined.