Property | Type | Description | |
---|---|---|---|
$images | array | Card images. | |
$metas | Arcanedev\SeoHelper\Contracts\Entities\MetaCollection | Card meta collection. | |
$type | string | Card type. |
Method | Description | |
---|---|---|
__construct ( array $configs = [] ) | Make the twitter card instance. | |
__toString ( ) : string | Render the tag. | |
addImage ( string $url ) : |
Add image to the card. | |
addMeta ( string $name, string $content ) : |
Add a meta to the card. | |
addMetas ( array $metas ) : |
Add many metas to the card. | |
render ( ) : string | Render the twitter card. | |
reset ( ) : |
Reset the card. | |
setDescription ( string $description ) : |
Set card description. | |
setSite ( string $site ) : |
Set card site. | |
setTitle ( string $title ) : |
Set card title. | |
setType ( string $type ) : |
Set the card type. | |
types ( ) : array | Get all supported card types. |
Method | Description | |
---|---|---|
checkSite ( string &$site ) | Check the card site. | |
checkType ( string &$type ) | Check the card type. | |
init ( ) : |
Start the engine. | |
loadImages ( ) | Render card images. | |
prepareUsername ( string $username ) : string | Prepare username. | |
setPrefix ( string $prefix ) : |
Set meta prefix name. |
public __construct ( array $configs = [] ) | ||
$configs | array |
public setDescription ( string $description ) : |
||
$description | string | |
return |
protected MetaCollection,Arcanedev\SeoHelper\Contracts\Entities $metas | ||
return | Arcanedev\SeoHelper\Contracts\Entities\MetaCollection |