Property | Type | Description | |
---|---|---|---|
$articleProperties | array | Array of Article Properties. | |
$audioProperties | array | Array of Audio Properties. | |
$bookProperties | array | Array of Book Properties. | |
$config | array | Config. | |
$images | array | Array of Image Properties. | |
$musicAlbumProperties | array | Array of Music Album Properties. | |
$musicPlaylistProperties | array | Array of Music Playlist Properties. | |
$musicRadioStationProperties | array | Array of Music Radio Properties. | |
$musicSongProperties | array | Array of Music Song Properties. | |
$og_prefix | string | OpenGraph Prefix. | |
$profileProperties | array | Array of Profile Properties. | |
$properties | array | Array of Properties. | |
$videoEpisodeProperties | array | Array of Video Episode Properties. | |
$videoMovieProperties | array | Array of Video Movie Properties. | |
$videoOtherProperties | array | Array of Video Other Properties. | |
$videoProperties | array | Array of Video Properties. | |
$videoTVShowProperties | array | Array of Video TV Show Properties. |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) : void | Create a new OpenGraph instance. | |
addAudio ( string $source = null, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Add audio properties. | |
addImage ( mixed $source = null, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Add image to properties. | |
addImages ( array $urls ) : Artesaos\SEOTools\Contracts\OpenGraph | Add images to properties. | |
addProperty ( string $key, string | array $value ) : Artesaos\SEOTools\Contracts\OpenGraph | Add or update property. | |
addVideo ( string $source = null, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Add video properties. | |
generate ( boolean $minify = false ) : string | Generates open graph tags. | |
removeProperty ( string $key ) : Artesaos\SEOTools\Contracts\OpenGraph | Remove property. | |
setArticle ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set article properties. | |
setBook ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set book properties. | |
setDescription ( string $description = null ) : Artesaos\SEOTools\Contracts\OpenGraph | Define description property. | |
setMusicAlbum ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set music album properties. | |
setMusicPlaylist ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set music playlist properties. | |
setMusicRadioStation ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set music radio station properties. | |
setMusicSong ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set music song properties. | |
setProfile ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set profile properties. | |
setSiteName ( string $name ) : Artesaos\SEOTools\Contracts\OpenGraph | Define site_name property. | |
setTitle ( string $title = null ) : Artesaos\SEOTools\Contracts\OpenGraph | Define title property. | |
setType ( string $type = null ) : Artesaos\SEOTools\Contracts\OpenGraph | Define type property. | |
setUrl ( string $url ) : Artesaos\SEOTools\Contracts\OpenGraph | Define url property. | |
setVideoEpisode ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set video episode properties. | |
setVideoMovie ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set video movie properties. | |
setVideoOther ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set video episode properties. | |
setVideoTVShow ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | Set video episode properties. |
Method | Description | |
---|---|---|
cleanProperties ( array $attributes = [], array $validKeys = [] ) : array | Clean invalid properties. | |
eachProperties ( array $properties, null | string $prefix = null, boolean $ogPrefix = true ) : string | Make list of open graph tags. | |
makeTag ( string $key = null, string $value = null, boolean $ogPrefix = false ) : string | Make a og tag. | |
setProperties ( string $type = null, string $key = null, array $attributes = [], array $validKeys = [] ) : void | Set properties. | |
setupDefaults ( ) : void | Add or update property. |
public __construct ( array $config = [] ) : void | ||
$config | array | config |
return | void |
public removeProperty ( string $key ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$key | string | key |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setArticle ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph article attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setDescription ( string $description = null ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$description | string | set the opengraph description |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setMusicAlbum ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph music.album attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setMusicPlaylist ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph music.playlist attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setMusicRadioStation ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph music.radio_station attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setMusicSong ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph music.song attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setProfile ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph profile attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setSiteName ( string $name ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$name | string | set the site_name |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setVideoEpisode ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph video.episode attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setVideoMovie ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph video.movie attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setVideoOther ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph video.other attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
public setVideoTVShow ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph | ||
$attributes | array | opengraph video.tv_show attributes |
return | Artesaos\SEOTools\Contracts\OpenGraph |
protected setupDefaults ( ) : void | ||
return | void |
protected array $articleProperties | ||
return | array |
protected array $audioProperties | ||
return | array |
protected array $bookProperties | ||
return | array |
protected array $musicAlbumProperties | ||
return | array |
protected array $musicPlaylistProperties | ||
return | array |
protected array $musicRadioStationProperties | ||
return | array |
protected array $musicSongProperties | ||
return | array |
protected array $profileProperties | ||
return | array |
protected array $videoEpisodeProperties | ||
return | array |
protected array $videoMovieProperties | ||
return | array |
protected array $videoOtherProperties | ||
return | array |
protected array $videoProperties | ||
return | array |
protected array $videoTVShowProperties | ||
return | array |