TractorCow\OpenGraph\Extensions\OpenGraphObjectExtension
Adds open graph functionality to a page or data object
- Author: Damian Mooyman
Synopsis
class OpenGraphObjectExtension
extends DataExtension
implements
IOGObjectExplicit
{
- // members
- private static string $default_image = 'tractorcow/silverstripe-opengraph: images/logo.gif';
- private static array $casting = ;
- // methods
- public string getOGNS()
- public IOpenGraphObjectBuilder getTagBuilder()
- public void MetaTags()
- public string getOGType()
- public void getOGTitle()
- public void getOGSiteName()
- public void getOGImage()
- public void AbsoluteLink()
- public void getOGAudio()
- public void getOGVideo()
- public void getOGDescription()
- public void getOGDeterminer()
- public void getOGLocales()
- // Inherited methods from InspectionTrait
- protected static bool implementsType()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Uses
- SilverStripe\Core\Config\Configurable
- TractorCow\OpenGraph\InspectionTrait
Implements
Tasks
Line | Task |
---|---|
62 | : Should custom namespace be injected here, or left up to user code? |
Members
private
- $casting
—
string
Do not escpae HTML - $default_image
—
string
The default image to use
Methods
public
- AbsoluteLink()
- MetaTags()
- getOGAudio()
- getOGDescription()
- getOGDeterminer()
- getOGImage()
- getOGLocales()
- getOGNS() — Property for retrieving the opengraph namespace html tag(s).
- getOGSiteName()
- getOGTitle()
- getOGType() — Determines the opengraph type identifier for this object
- getOGVideo()
- getTagBuilder() — Determines the tag builder to use for this object
Inherited from TractorCow\OpenGraph\InspectionTrait
protected
- implementsType() — Determine if an object implements a specific interface, or has an extension which implements this