PHP 클래스 Arcanedev\SeoHelper\SeoTwitter

상속: implements Arcanedev\SeoHelper\Contracts\SeoTwitter, use trait Arcanedev\Support\Traits\Configurable
파일 보기 프로젝트 열기: arcanedev/seo-helper

보호된 프로퍼티들

프로퍼티 타입 설명
$card Arcanedev\SeoHelper\Contracts\Entities\TwitterCard The Twitter Card instance.
$enabled boolean Enable or Disable the Twitter Card.

공개 메소드들

메소드 설명
__construct ( array $configs ) Make SeoTwitter instance.
__toString ( ) : string Render the tag.
addImage ( string $url ) : SeoTwitter Add image to the card.
addMeta ( string $name, string $content ) : SeoTwitter Add a meta to the Twitter Card.
addMetas ( array $metas ) : SeoTwitter Add many metas to the card.
disable ( ) : SeoTwitter Disable the Twitter Card.
enable ( ) : SeoTwitter Enable the Twitter Card.
isDisabled ( ) : boolean Check if the Twitter Card is disabled.
isEnabled ( ) : boolean Check if the Twitter Card is enabled.
render ( ) : string Render the tag.
reset ( ) : SeoTwitter Reset the Twitter Card.
setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : SeoTwitter Set the Twitter Card instance.
setDescription ( string $description ) : SeoTwitter Set the card description.
setSite ( string $site ) : SeoTwitter Set the card site.
setTitle ( string $title ) : SeoTwitter Set the card title.
setType ( string $type ) : SeoTwitter Set the card type.

비공개 메소드들

메소드 설명
setEnabled ( boolean $enabled ) : SeoTwitter Set the enabled status for the Twitter Card.

메소드 상세

__construct() 공개 메소드

Make SeoTwitter instance.
public __construct ( array $configs )
$configs array

__toString() 공개 메소드

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

addImage() 공개 메소드

Add image to the card.
public addImage ( string $url ) : SeoTwitter
$url string
리턴 SeoTwitter

addMeta() 공개 메소드

Add a meta to the Twitter Card.
public addMeta ( string $name, string $content ) : SeoTwitter
$name string
$content string
리턴 SeoTwitter

addMetas() 공개 메소드

Add many metas to the card.
public addMetas ( array $metas ) : SeoTwitter
$metas array
리턴 SeoTwitter

disable() 공개 메소드

Disable the Twitter Card.
public disable ( ) : SeoTwitter
리턴 SeoTwitter

enable() 공개 메소드

Enable the Twitter Card.
public enable ( ) : SeoTwitter
리턴 SeoTwitter

isDisabled() 공개 메소드

Check if the Twitter Card is disabled.
public isDisabled ( ) : boolean
리턴 boolean

isEnabled() 공개 메소드

Check if the Twitter Card is enabled.
public isEnabled ( ) : boolean
리턴 boolean

render() 공개 메소드

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

reset() 공개 메소드

Reset the Twitter Card.
public reset ( ) : SeoTwitter
리턴 SeoTwitter

setCard() 공개 메소드

Set the Twitter Card instance.
public setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : SeoTwitter
$card Arcanedev\SeoHelper\Contracts\Entities\TwitterCard
리턴 SeoTwitter

setDescription() 공개 메소드

Set the card description.
public setDescription ( string $description ) : SeoTwitter
$description string
리턴 SeoTwitter

setSite() 공개 메소드

Set the card site.
public setSite ( string $site ) : SeoTwitter
$site string
리턴 SeoTwitter

setTitle() 공개 메소드

Set the card title.
public setTitle ( string $title ) : SeoTwitter
$title string
리턴 SeoTwitter

setType() 공개 메소드

Set the card type.
public setType ( string $type ) : SeoTwitter
$type string
리턴 SeoTwitter

프로퍼티 상세

$card 보호되어 있는 프로퍼티

The Twitter Card instance.
protected TwitterCard,Arcanedev\SeoHelper\Contracts\Entities $card
리턴 Arcanedev\SeoHelper\Contracts\Entities\TwitterCard

$enabled 보호되어 있는 프로퍼티

Enable or Disable the Twitter Card.
protected bool $enabled
리턴 boolean