TractorCow\OpenGraph\OpenGraph
Simple wrapper for opengraph settings
Synopsis
class OpenGraph
{
- // methods
- public static void register_type()
- public static array get_prototype()
- public static string get_object_type()
- public static mixed get_config()
- public static void set_config()
- public static void set_application()
- public static void set_admin()
- public static string get_default_tagbuilder()
- public static array get_locales()
- public static void get_default_locale()
- public static boolean is_locale_valid()
- // Inherited methods from InspectionTrait
- protected static bool implementsType()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- TractorCow\OpenGraph\InspectionTrait
Methods
public
- get_config() — Retrieves the configured field, or "SiteConfig" if this should be managed through the siteconfig instead of yaml configuration
- get_default_locale()
- get_default_tagbuilder() — Retrieves the default class used to build tags
- get_locales() — Retrieves the list of all allowed opengraph locales
- get_object_type() — Determines the type of the object by the interfaces that it implements
- get_prototype() — Retrieve the prototype (identifying interface and tag builder class) given an opengraph type
- is_locale_valid() — Check if a given locale is valid
- register_type() — Registers a new Opengraph object type
- set_admin() — Sets the admin ID of this site, or 'SiteConfig' to manage in CMS
- set_application() — Sets the application ID of this site, or 'SiteConfig' to manage in CMS
- set_config() — Configure the site to use a specified value for a field. Specifying 'SiteConfig' will cause the value for this field to be managed via the SiteConfig
Inherited from TractorCow\OpenGraph\InspectionTrait
protected
- implementsType() — Determine if an object implements a specific interface, or has an extension which implements this