QuinnInteractive\Seo\Seo
Class Seo
Synopsis
class Seo
{
- // methods
- public static string collateContentFields()
- public static array getArticleTags()
- public static string|null getCurrentAction()
- public static array getCanonicalUrlLink()
- public static array getFacebookMetaTags()
- public static array getGoogleAnalytics()
- public static array getPixels()
- public static array getTwitterMetaTags()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Methods
public
- collateContentFields() — Collates all content fields from {@link seoContentFields()} into a single string. Which makes it very important that the seoContentFields array is in the correct order as to which they display.
- getArticleTags() — Creates article:published_time and article:modified_time tags
- getCanonicalUrlLink() — Creates the canonical url link
- getCurrentAction() — Gets the current action. Good for static routes like Security where the index is a 404
- getFacebookMetaTags() — Creates the Facebook/OpenGraph meta tags
- getGoogleAnalytics()
- getPixels() — Get all PixelFields
- getTwitterMetaTags() — Creates the twitter meta tags