Свойство | Type | Description | |
---|---|---|---|
$card | Arcanedev\SeoHelper\Contracts\Entities\TwitterCard | The Twitter Card instance. | |
$enabled | boolean | Enable or Disable the Twitter Card. |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
setEnabled ( boolean $enabled ) : |
Set the enabled status for the Twitter Card. |
public __construct ( array $configs ) | ||
$configs | array |
public disable ( ) : |
||
Résultat |
public isDisabled ( ) : boolean | ||
Résultat | boolean |
public setCard ( Arcanedev\SeoHelper\Contracts\Entities\TwitterCard $card ) : |
||
$card | Arcanedev\SeoHelper\Contracts\Entities\TwitterCard | |
Résultat |
public setDescription ( string $description ) : |
||
$description | string | |
Résultat |
protected TwitterCard,Arcanedev\SeoHelper\Contracts\Entities $card | ||
Résultat | Arcanedev\SeoHelper\Contracts\Entities\TwitterCard |
protected bool $enabled | ||
Résultat | boolean |