PHP 클래스 Arcanedev\SeoHelper\SeoHelper

저자: ARCANEDEV ([email protected])
상속: implements Arcanedev\SeoHelper\Contracts\SeoHelper
파일 보기 프로젝트 열기: ARCANEDEV/SEO-Helper

공개 메소드들

메소드 설명
__construct ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta, Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph, Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter ) Make SeoHelper instance.
__toString ( ) : string Render the tag.
disableOpenGraph ( ) : SeoHelper Disable the OpenGraph.
disableTwitter ( ) : SeoHelper Disable the Twitter Card.
enableOpenGraph ( ) : SeoHelper Enable the OpenGraph.
enableTwitter ( ) : SeoHelper 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.
render ( ) : string Render all seo tags.
renderHtml ( ) : Illuminate\Support\HtmlString Render all seo tags with HtmlString object.
setDescription ( string $description ) : Arcanedev\SeoHelper\Contracts\SeoHelper Set description.
setKeywords ( array | string $keywords ) : SeoHelper Set keywords.
setSeoMeta ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta ) : SeoHelper Set SeoMeta instance.
setSeoOpenGraph ( Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph ) : SeoHelper Get SeoOpenGraph instance.
setSeoTwitter ( Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter ) : SeoHelper Set SeoTwitter instance.
setSiteName ( string $siteName ) : self Set the site name.
setTitle ( string $title, string | null $siteName = null, string | null $separator = null ) : SeoHelper Set title.
twitter ( ) : Arcanedev\SeoHelper\Contracts\SeoTwitter Get SeoTwitter instance.

메소드 상세

__construct() 공개 메소드

Make SeoHelper instance.
public __construct ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta, Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph, Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter )
$seoMeta Arcanedev\SeoHelper\Contracts\SeoMeta
$seoOpenGraph Arcanedev\SeoHelper\Contracts\SeoOpenGraph
$seoTwitter Arcanedev\SeoHelper\Contracts\SeoTwitter

__toString() 공개 메소드

Render the tag.
public __toString ( ) : string
리턴 string

disableOpenGraph() 공개 메소드

Disable the OpenGraph.
public disableOpenGraph ( ) : SeoHelper
리턴 SeoHelper

disableTwitter() 공개 메소드

Disable the Twitter Card.
public disableTwitter ( ) : SeoHelper
리턴 SeoHelper

enableOpenGraph() 공개 메소드

Enable the OpenGraph.
public enableOpenGraph ( ) : SeoHelper
리턴 SeoHelper

enableTwitter() 공개 메소드

Enable the Twitter Card.
public enableTwitter ( ) : SeoHelper
리턴 SeoHelper

meta() 공개 메소드

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

og() 공개 메소드

Get SeoOpenGraph instance (alias).
또한 보기: openGraph()
public og ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph
리턴 Arcanedev\SeoHelper\Contracts\SeoOpenGraph

openGraph() 공개 메소드

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

render() 공개 메소드

Render all seo tags.
public render ( ) : string
리턴 string

renderHtml() 공개 메소드

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

setDescription() 공개 메소드

Set description.
public setDescription ( string $description ) : Arcanedev\SeoHelper\Contracts\SeoHelper
$description string
리턴 Arcanedev\SeoHelper\Contracts\SeoHelper

setKeywords() 공개 메소드

Set keywords.
public setKeywords ( array | string $keywords ) : SeoHelper
$keywords array | string
리턴 SeoHelper

setSeoMeta() 공개 메소드

Set SeoMeta instance.
public setSeoMeta ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta ) : SeoHelper
$seoMeta Arcanedev\SeoHelper\Contracts\SeoMeta
리턴 SeoHelper

setSeoOpenGraph() 공개 메소드

Get SeoOpenGraph instance.
public setSeoOpenGraph ( Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph ) : SeoHelper
$seoOpenGraph Arcanedev\SeoHelper\Contracts\SeoOpenGraph
리턴 SeoHelper

setSeoTwitter() 공개 메소드

Set SeoTwitter instance.
public setSeoTwitter ( Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter ) : SeoHelper
$seoTwitter Arcanedev\SeoHelper\Contracts\SeoTwitter
리턴 SeoHelper

setSiteName() 공개 메소드

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

setTitle() 공개 메소드

Set title.
public setTitle ( string $title, string | null $siteName = null, string | null $separator = null ) : SeoHelper
$title string
$siteName string | null
$separator string | null
리턴 SeoHelper

twitter() 공개 메소드

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