Свойство | Type | Description | |
---|---|---|---|
$enabled | boolean | Enable or Disable the OpenGraph. | |
$openGraph | Arcanedev\SeoHelper\Contracts\Entities\OpenGraph | The Open Graph instance. |
Méthode | Description | |
---|---|---|
__construct ( array $configs ) | Make SeoOpenGraph instance. | |
__toString ( ) : string | Render the tag. | |
addProperties ( array $properties ) : |
Add many open graph properties. | |
addProperty ( string $property, string $content ) : |
Add an open graph property. | |
disable ( ) : |
Disable the OpenGraph. | |
enable ( ) : |
Enable the OpenGraph. | |
isDisabled ( ) : boolean | Check if the OpenGraph is disabled. | |
isEnabled ( ) : boolean | Check if the OpenGraph is enabled. | |
render ( ) : string | Render the tag. | |
setDescription ( string $description ) : |
Set description property. | |
setImage ( string $image ) : |
Set image property. | |
setOpenGraph ( Arcanedev\SeoHelper\Contracts\Entities\OpenGraph $openGraph ) : |
Set the Open Graph instance. | |
setPrefix ( string $prefix ) : |
Set the open graph prefix. | |
setSiteName ( string $siteName ) : |
Set site name property. | |
setTitle ( string $title ) : |
Set title property. | |
setType ( string $type ) : |
Set type property. | |
setUrl ( string $url ) : |
Set url property. |
Méthode | Description | |
---|---|---|
setEnabled ( boolean $enabled ) : |
Set the enabled status for the OpenGraph. |
public __construct ( array $configs ) | ||
$configs | array |
public addProperties ( array $properties ) : |
||
$properties | array | |
Résultat |
public addProperty ( string $property, string $content ) : |
||
$property | string | |
$content | string | |
Résultat |
public disable ( ) : |
||
Résultat |
public enable ( ) : |
||
Résultat |
public isDisabled ( ) : boolean | ||
Résultat | boolean |
public setDescription ( string $description ) : |
||
$description | string | |
Résultat |
public setOpenGraph ( Arcanedev\SeoHelper\Contracts\Entities\OpenGraph $openGraph ) : |
||
$openGraph | Arcanedev\SeoHelper\Contracts\Entities\OpenGraph | |
Résultat |
public setSiteName ( string $siteName ) : |
||
$siteName | string | |
Résultat |
protected bool $enabled | ||
Résultat | boolean |