Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 2.08 KB

20_Extractors.md

File metadata and controls

30 lines (23 loc) · 2.08 KB

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

Name Description
setMetaDescription Set meta description.
setTitle Set title.
setTitle Set title.
addExtraProperty, setExtraProperties Add a extra property.
addSchema Add a schema block ( application/ld+json). Note! No script tags are allowed here, only encoded json data!
addExtraName, setExtraNames Add a extra name meta field.
addExtraHttp, setExtraHttp Add 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