Syntro\SEO\Extensions\SEOSiteTreeExtension
The SEOSiteTreeExtension class adds the ability to render SEO specific meta information to a page header.
It is using a datasource for the information which can either
be a SiteTree subclass (as the SEOExtension is directly added via module) or
a DataObject with the SEOExtension applied.
- Author: Matthias Leutenegger <hello@syntro.ch>
Synopsis
class SEOSiteTreeExtension
extends DataExtension
{
- // members
- protected $source = NULL;
- // methods
- public SiteTree|null getSEOSource()
- public void setSEOSource()
- public array MetaComponents()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
protected
- $source
Methods
public
- MetaComponents() — MetaComponents - updates the MetaComponents with all necessary stuff.
- getSEOSource() — getSEOSource - returns the set SEO source
- setSEOSource() — setSEOSource - set the source