Skip to main content

Extractors

This bundle comes with one pre-installed extractor: the IntegratorExtractor. This service will extract all data from your enabled integrators.

Every extractor has two methods:

supports($element)

This method passes a various element (document/object). The extractor is able to decide if this element is valid for processing.

updateMetaData($element, $locale, $seoMetadata)

This method allows you to update the SeoMetaData object

SeoMetaData Class

NameDescription
setMetaDescriptionSet meta description.
setTitleSet title.
setTitleSet title.
addExtraProperty, setExtraPropertiesAdd a extra property.
addSchemaAdd a schema block ( application/ld+json). Note! No script tags are allowed here, only encoded json data!
addExtraName, setExtraNamesAdd a extra name meta field.
addExtraHttp, setExtraHttpAdd a extra http meta field.

Note: Extractors are prioritized services. If another extractor supports your element too it could override your current definition.

More Information