JonoM\ShareCare\ShareCareFields
Provide default fields and method customisations to complement Open Graph module with minimal setup.
Synopsis
class ShareCareFields
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- // methods
- public void updateCMSFields()
- public string getOGTitle()
- public string getOGDescription()
- public string getDefaultOGDescription()
- public Image|string|false getOGImage()
- public Image|null getPinterestImage()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db
- $has_one
- $owns
Methods
public
- getDefaultOGDescription() — The default/fallback value to be used in the 'og:description' open graph tag.
- getOGDescription() — The description that will be used in the 'og:description' open graph tag.
- getOGImage() — The Image object or absolute URL that will be used for the 'og:image' open graph tag.
- getOGTitle() — The title that will be used in the 'og:title' open graph tag.
- getPinterestImage() — Get an Image object to be used in the 'Pin it' ($PinterestShareLink) link.
- updateCMSFields() — Add CMS fields to allow setting of custom open graph values.