All features
Cherry Blossom feature
Structured data: Provider interface
Defines a data-only source for the shared schema graph.
Defines a data-only source for the shared schema graph.
Capabilities and extension points
Defines a data-only source for the shared schema graph.
The collector calls supports() before get_entities(). Providers must not print markup or a JSON-LD script; the graph adapter owns encoding and output.
Determines whether the provider supports the request.
- param \Cherry\Blossom\Structured_Data\Context $context Structured data request context.
- return bool Whether the provider supports the request.
Gets schema entities for the request.
Providers return one entity or a list of entities. Each entity must contain a non-empty `@type` property and must not contain an `@context` property. Return an empty array when there is no visible entity for this request.
- param \Cherry\Blossom\Structured_Data\Context $context Structured data request context.
- return array Schema entities.
Source reference
This editable reference page is based on the PHP documentation in structured-data/interfaces/interface-provider.php.