RouteAttributeParser
class RouteAttributeParser
Constants
| HEAD |
|
Properties
| static protected int | $metadataLayer |
Methods
Normalize variadic head arguments, unwrapping a single array argument.
Wrap head attributes in a cache-friendly route metadata layer.
Wrap named head arguments in a cache-friendly route metadata layer, discarding arguments that were not provided.
Apply head attributes on top of the given head data.
Overlay each named attribute's builder onto a copy of the head data.
Determine whether an attribute intentionally supplies an empty value.
Validate that all route head attributes are named.
Details
at line 27
static array
arguments(array $arguments)
Normalize variadic head arguments, unwrapping a single array argument.
at line 42
static array
metadata(array $attributes)
Wrap head attributes in a cache-friendly route metadata layer.
at line 62
static array
metadataFromArguments(array $arguments)
Wrap named head arguments in a cache-friendly route metadata layer, discarding arguments that were not provided.
at line 88
static array
routeMetadata(Route $route)
Get the head attribute layers stored in the route's metadata.
at line 112
static HeadData
apply(HeadData $head, HeadData|array|null $attributes, TagRegistry $registry)
Apply head attributes on top of the given head data.
at line 130
static protected HeadData
fill(HeadData $head, array $attributes, TagRegistry $registry)
Overlay each named attribute's builder onto a copy of the head data.
at line 165
static protected bool
isEmptyRouteAttributeValue(mixed $value)
Determine whether an attribute intentionally supplies an empty value.
at line 176
static protected array
named(array $attributes)
Validate that all route head attributes are named.