SilverWare\OpenGraph\Extensions\PageExtension
An extension which adds open graph metadata to pages.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class PageExtension
extends Extension
{
- // members
- private static array $casting = ;
- // methods
- public string getOGPrefix()
- public string getOGType()
- public string getOGTypeMapping()
- public string getOGTypeNamespace()
- public string getOGURL()
- public string getOGTitle()
- public string getOGImage()
- public string getOGLocale()
- public string getOGSiteName()
- public string getOGDescription()
- public void MetaTags()
- protected void addMetaTag()
- protected string getMetaTag()
- protected string getNamespaceURI()
- protected SiteConfig getSiteConfig()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $casting
—
array
Maps field and method names to the class names of casting objects.
Methods
protected
- addMetaTag() — Appends a meta tag with the given property name and content value to the provided tags variable.
- getMetaTag() — Answers a meta tag with the given property name and content value.
- getNamespaceURI() — Answers the namespace URI for the specified prefix.
- getSiteConfig() — Answers the current site config object.
public
- MetaTags() — Appends the additional open graph tags to the provided meta tags.
- getOGDescription() — Answers the description for the open graph tag.
- getOGImage() — Answers the image for the open graph tag.
- getOGLocale() — Answers the locale for the open graph tag.
- getOGPrefix() — Answers the open graph prefix for the <head> tag.
- getOGSiteName() — Answers the site name for the open graph tag.
- getOGTitle() — Answers the title for the open graph tag.
- getOGType() — Answers the open graph type for the page (override in extended object).
- getOGTypeMapping() — Answers the open graph type for the mapping with the given name and optional sub-name.
- getOGTypeNamespace() — Answers the open graph type namespace for the page.
- getOGURL() — Answers the URL for the open graph tag.