CyberDuck\SEO\Forms\MetaPreviewField
MetaPreviewField
Gogole SERP preview field
- Author: <andrewm@cyber-duck.co.uk>
- License: MIT License https://github.com/cyber-duck/silverstripe-seo/blob/master/LICENSE
Synopsis
class MetaPreviewField
extends LiteralField
{
- // members
- private $page;
- // methods
- public void __construct()
- private ViewableData getMetaContent()
- private string getPageMetaTitle()
- private string getPageMetaLink()
- private string getPageMetaDescription()
Hierarchy
Extends
- SilverStripe\Forms\LiteralField
Members
private
-
$page
Object instance used to populate Meta from
Methods
private
- getMetaContent() — Get the required values to show in the SERP preview
- getPageMetaDescription() — Get the Meta description to show in the SERP preview
- getPageMetaLink() — Get the page URL to show in the SERP preview
- getPageMetaTitle() — Get the Meta title to show in the SERP preview