SeoItems
in package
This is the Metatags class.
This class has the logic to work with Seo Items
Tags
Table of Contents
AUTHOR | = 'author' | |
---|---|---|
DESCRIPTION | = 'description' | |
FB_ADMINS | = 'fb:admins' | |
FB_PAGE_ID | = 'fb:page' | |
GENERATOR | = 'generator' | |
KEYWORDS | = 'keywords' | |
OG_DESCRIPTION | = 'og:description' | |
OG_IMAGE | = 'og:image' | |
OG_LOCALE | = 'og:locale' | |
OG_SITE_NAME | = 'og:site_name' | |
OG_TITLE | = 'og:title' | |
OG_TYPE | = 'og:type' | |
OG_URL | = 'og:url' | |
ROBOTS | = 'robots' | |
TWITTER_CARD | = 'twitter:card' | |
TWITTER_CARD_CONTENT_PHOTO | = "photo" | |
TWITTER_CARD_CONTENT_PLAYER | = "player" | |
TWITTER_CARD_CONTENT_SUMMARY | = "summary" | |
TWITTER_DESCRIPTION | = 'twitter:description' | |
TWITTER_IMAGE | = 'twitter:image' | |
TWITTER_SITE | = 'twitter:site' | |
TWITTER_TITLE | = 'twitter:title' | |
TWITTER_URL | = 'twitter:url' | |
VIEWPORT | = 'viewport' | |
__construct() | Constructor. | : mixed |
addMetatag() | This Method returns add a metatag | : Metatag|null |
getAlternates() | This method sets the alternates | : array<string|int, mixed> |
getCanonical() | This method sets the canonical | : string |
getLinkRelNext() | This method sets the linkRelNext | : string |
getLinkRelPrev() | This method sets the linkRelPrev | : string |
getMetatag() | This Method returns the named metatag | : Metatag|null |
getMetatags() | This method sets the metatags | : array<string|int, mixed> |
getTitle() | This method sets the title | : string |
outputAlternates() | This method returns the output of alternates. | : string |
outputCanonical() | This method returns the canonical output. | : string |
outputLinkRelPrevNext() | This method returns the canonical output. | : string |
outputMetatags() | This method returns the full output of the metatags. | : string |
outputTitle() | This method returns the title output | : string |
setPaginationValues() | This method sets the SEO values associated to pagination | : void |
setSeoSettingsValues() | This method sets the SEO values associated to pagination | : void |
Constants
AUTHOR
public
mixed
AUTHOR
= 'author'
DESCRIPTION
public
mixed
DESCRIPTION
= 'description'
FB_ADMINS
public
mixed
FB_ADMINS
= 'fb:admins'
FB_PAGE_ID
public
mixed
FB_PAGE_ID
= 'fb:page'
GENERATOR
public
mixed
GENERATOR
= 'generator'
KEYWORDS
public
mixed
KEYWORDS
= 'keywords'
OG_DESCRIPTION
public
mixed
OG_DESCRIPTION
= 'og:description'
OG_IMAGE
public
mixed
OG_IMAGE
= 'og:image'
OG_LOCALE
public
mixed
OG_LOCALE
= 'og:locale'
OG_SITE_NAME
public
mixed
OG_SITE_NAME
= 'og:site_name'
OG_TITLE
public
mixed
OG_TITLE
= 'og:title'
OG_TYPE
public
mixed
OG_TYPE
= 'og:type'
OG_URL
public
mixed
OG_URL
= 'og:url'
ROBOTS
public
mixed
ROBOTS
= 'robots'
TWITTER_CARD
public
mixed
TWITTER_CARD
= 'twitter:card'
TWITTER_CARD_CONTENT_PHOTO
public
mixed
TWITTER_CARD_CONTENT_PHOTO
= "photo"
TWITTER_CARD_CONTENT_PLAYER
public
mixed
TWITTER_CARD_CONTENT_PLAYER
= "player"
TWITTER_CARD_CONTENT_SUMMARY
public
mixed
TWITTER_CARD_CONTENT_SUMMARY
= "summary"
TWITTER_DESCRIPTION
public
mixed
TWITTER_DESCRIPTION
= 'twitter:description'
TWITTER_IMAGE
public
mixed
TWITTER_IMAGE
= 'twitter:image'
TWITTER_SITE
public
mixed
TWITTER_SITE
= 'twitter:site'
TWITTER_TITLE
public
mixed
TWITTER_TITLE
= 'twitter:title'
TWITTER_URL
public
mixed
TWITTER_URL
= 'twitter:url'
VIEWPORT
public
mixed
VIEWPORT
= 'viewport'
Methods
__construct()
Constructor.
public
__construct(Route $route, Language $language[, SEOElementInterface $seoSettings = null ][, Pagination|null $pagination = null ]) : mixed
Parameters
- $route : Route
- $language : Language
- $seoSettings : SEOElementInterface = null
- $pagination : Pagination|null = null
Return values
mixed —addMetatag()
This Method returns add a metatag
public
addMetatag(Metatag $value) : Metatag|null
Parameters
- $value : Metatag
Return values
Metatag|null —getAlternates()
This method sets the alternates
public
getAlternates() : array<string|int, mixed>
Return values
array<string|int, mixed> —getCanonical()
This method sets the canonical
public
getCanonical() : string
Return values
string —getLinkRelNext()
This method sets the linkRelNext
public
getLinkRelNext() : string
Return values
string —getLinkRelPrev()
This method sets the linkRelPrev
public
getLinkRelPrev() : string
Return values
string —getMetatag()
This Method returns the named metatag
public
getMetatag(string $name) : Metatag|null
Parameters
- $name : string
Return values
Metatag|null —getMetatags()
This method sets the metatags
public
getMetatags() : array<string|int, mixed>
Return values
array<string|int, mixed> —getTitle()
This method sets the title
public
getTitle() : string
Return values
string —outputAlternates()
This method returns the output of alternates.
public
outputAlternates() : string
Return values
string —outputCanonical()
This method returns the canonical output.
public
outputCanonical() : string
Return values
string —outputLinkRelPrevNext()
This method returns the canonical output.
public
outputLinkRelPrevNext() : string
Return values
string —outputMetatags()
This method returns the full output of the metatags.
public
outputMetatags() : string
Return values
string —outputTitle()
This method returns the title output
public
outputTitle() : string
Return values
string —setPaginationValues()
This method sets the SEO values associated to pagination
public
setPaginationValues(Pagination $pagination) : void
Parameters
- $pagination : Pagination
Return values
void —setSeoSettingsValues()
This method sets the SEO values associated to pagination
public
setSeoSettingsValues(SEOElementInterface $seoSettings) : void
Parameters
- $seoSettings : SEOElementInterface