TractorCow\OpenGraph\Interfaces\ObjectTypes\IOGObjectRequired
Interface encompassing required fields for an opengraph object.
This interface may be used on any data object that explicitly defines mandatory methods, as opposed to
classes that may instead implement those methods in decorators, but it is not necessary to do so as long
as these are implemented in those decorators.
- Author: Damian Mooyman
Synopsis
interface IOGObjectRequired
extends IOGObject
{
- // methods
- public string|null|false getOGTitle()
- public string|null|false getOGType()
- public array getOGImage()
- // Inherited methods from IOGObject
- public void AbsoluteLink()
Hierarchy
Methods
public
- getOGImage() — Determines the image(s) to use for this object Image should be at least 200px by 200px, with 1500px by 1500px preferred, and less than 5MB in size.
- getOGTitle() — Determines the OpenGraph Title
- getOGType() — Determines the OpenGraph type as defined at {@link http://ogp.me/#types}
Inherited from TractorCow\OpenGraph\Interfaces\ObjectTypes\IOGObject
public
- AbsoluteLink() — URI to this object Named as below to prevent having to wrap the {@link SiteTree::AbsoluteLink} method explicitly