Свойство | Тип | Описание | |
---|---|---|---|
$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 ) : |
Add image to the card. | |
addMeta ( string $name, string $content ) : |
Add a meta to the Twitter Card. | |
addMetas ( array $metas ) : |
Add many metas to the card. | |
disable ( ) : |
Disable the Twitter Card. | |
enable ( ) : |
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 ( ) : |
Reset the Twitter Card. | |
setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : |
Set the Twitter Card instance. | |
setDescription ( string $description ) : |
Set the card description. | |
setSite ( string $site ) : |
Set the card site. | |
setTitle ( string $title ) : |
Set the card title. | |
setType ( string $type ) : |
Set the card type. |
Метод | Описание | |
---|---|---|
setEnabled ( boolean $enabled ) : |
Set the enabled status for the Twitter Card. |
public __construct ( array $configs ) | ||
$configs | array |
public disable ( ) : |
||
Результат |
public enable ( ) : |
||
Результат |
public isDisabled ( ) : boolean | ||
Результат | boolean |
public setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : |
||
$card | Arcanedev\SeoHelper\Contracts\Entities\TwitterCard | |
Результат |
public setDescription ( string $description ) : |
||
$description | string | |
Результат |
protected TwitterCard,Arcanedev\SeoHelper\Contracts\Entities $card | ||
Результат | Arcanedev\SeoHelper\Contracts\Entities\TwitterCard |
protected bool $enabled | ||
Результат | boolean |