ResolvedHead
class ResolvedHead implements Transient
Methods
Create a resolved view of the page metadata.
Validate a structured data definition.
Get the resolved title.
Get the resolved description.
Get the resolved canonical URL.
Get the resolved robots directives.
Get the first Open Graph image and its alternative text.
Get the tag builders to render, in declared order, including those that derive their values from the rest of the head even when never set explicitly.
Resolve one tag builder into its Head::toArray() value, including defaults for builder data that was never set.
Get an existing tag builder from the resolved data.
Details
at line 25
__construct(HeadData $data, TagRegistry $registry, Request|null $request = null, SchemaValidator|null $schemas = null)
Create a resolved view of the page metadata.
at line 36
HeadData
data()
Get the resolved head data.
at line 44
Request|null
request()
Get the request used for rendering.
at line 54
void
validateSchema(array $schema)
Validate a structured data definition.
at line 62
string|null
title()
Get the resolved title.
at line 72
string|null
description()
Get the resolved description.
at line 82
string|null
canonical()
Get the resolved canonical URL.
at line 92
string|null
robots()
Get the resolved robots directives.
at line 104
array|null
openGraphImage()
Get the first Open Graph image and its alternative text.
at line 126
array
builders()
Get the tag builders to render, in declared order, including those that derive their values from the rest of the head even when never set explicitly.
at line 149
mixed
headArray(string $builder)
Resolve one tag builder into its Head::toArray() value, including defaults for builder data that was never set.
at line 165
TagBuilder|null
builder(string $builder)
Get an existing tag builder from the resolved data.