PHP Interface Arcanedev\SeoHelper\Contracts\SeoHelper

Author: ARCANEDEV ([email protected])
Inheritance: extends Arcanedev\SeoHelper\Contracts\Renderable
显示文件 Open project: ARCANEDEV/SEO-Helper

Public Methods

Method Description
disableOpenGraph ( ) : self Disable the OpenGraph.
disableTwitter ( ) : self Disable the Twitter Card.
enableOpenGraph ( ) : self Enable the OpenGraph.
enableTwitter ( ) : self Enable the Twitter Card.
meta ( ) : Arcanedev\SeoHelper\Contracts\SeoMeta Get SeoMeta instance.
og ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph Get SeoOpenGraph instance (alias).
openGraph ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph Get SeoOpenGraph instance.
renderHtml ( ) : Illuminate\Support\HtmlString Render all seo tags with HtmlString object.
setDescription ( string $description ) : self Set description.
setKeywords ( array | string $keywords ) : self Set keywords.
setSeoMeta ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta ) : self Set SeoMeta instance.
setSeoOpenGraph ( Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph ) : self Get SeoOpenGraph instance.
setSeoTwitter ( Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter ) : self Set SeoTwitter instance.
setSiteName ( string $siteName ) : self Set the site name.
setTitle ( string $title, string | null $siteName = null, string | null $separator = null ) : self Set title.
twitter ( ) : Arcanedev\SeoHelper\Contracts\SeoTwitter Get SeoTwitter instance.

Method Details

disableOpenGraph() public method

Disable the OpenGraph.
public disableOpenGraph ( ) : self
return self

disableTwitter() public method

Disable the Twitter Card.
public disableTwitter ( ) : self
return self

enableOpenGraph() public method

Enable the OpenGraph.
public enableOpenGraph ( ) : self
return self

enableTwitter() public method

Enable the Twitter Card.
public enableTwitter ( ) : self
return self

meta() public method

Get SeoMeta instance.
public meta ( ) : Arcanedev\SeoHelper\Contracts\SeoMeta
return Arcanedev\SeoHelper\Contracts\SeoMeta

og() public method

Get SeoOpenGraph instance (alias).
See also: openGraph()
public og ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph
return Arcanedev\SeoHelper\Contracts\SeoOpenGraph

openGraph() public method

Get SeoOpenGraph instance.
public openGraph ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph
return Arcanedev\SeoHelper\Contracts\SeoOpenGraph

renderHtml() public method

Render all seo tags with HtmlString object.
public renderHtml ( ) : Illuminate\Support\HtmlString
return Illuminate\Support\HtmlString

setDescription() public method

Set description.
public setDescription ( string $description ) : self
$description string
return self

setKeywords() public method

Set keywords.
public setKeywords ( array | string $keywords ) : self
$keywords array | string
return self

setSeoMeta() public method

Set SeoMeta instance.
public setSeoMeta ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta ) : self
$seoMeta Arcanedev\SeoHelper\Contracts\SeoMeta
return self

setSeoOpenGraph() public method

Get SeoOpenGraph instance.
public setSeoOpenGraph ( Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph ) : self
$seoOpenGraph Arcanedev\SeoHelper\Contracts\SeoOpenGraph
return self

setSeoTwitter() public method

Set SeoTwitter instance.
public setSeoTwitter ( Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter ) : self
$seoTwitter Arcanedev\SeoHelper\Contracts\SeoTwitter
return self

setSiteName() public method

Set the site name.
public setSiteName ( string $siteName ) : self
$siteName string
return self

setTitle() public method

Set title.
public setTitle ( string $title, string | null $siteName = null, string | null $separator = null ) : self
$title string
$siteName string | null
$separator string | null
return self

twitter() public method

Get SeoTwitter instance.
public twitter ( ) : Arcanedev\SeoHelper\Contracts\SeoTwitter
return Arcanedev\SeoHelper\Contracts\SeoTwitter