Property | Type | Description | |
---|---|---|---|
$enabled | boolean | Enable or Disable the OpenGraph. | |
$openGraph | Arcanedev\SeoHelper\Contracts\Entities\OpenGraph | The Open Graph instance. |
Method | 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. |
Method | Description | |
---|---|---|
setEnabled ( boolean $enabled ) : |
Set the enabled status for the OpenGraph. |
public __construct ( array $configs ) | ||
$configs | array |
public addProperties ( array $properties ) : |
||
$properties | array | |
return |
public addProperty ( string $property, string $content ) : |
||
$property | string | |
$content | string | |
return |
public disable ( ) : |
||
return |
public isDisabled ( ) : boolean | ||
return | boolean |
public setDescription ( string $description ) : |
||
$description | string | |
return |
public setOpenGraph ( Arcanedev\SeoHelper\Contracts\Entities\OpenGraph $openGraph ) : |
||
$openGraph | Arcanedev\SeoHelper\Contracts\Entities\OpenGraph | |
return |
public setSiteName ( string $siteName ) : |
||
$siteName | string | |
return |
protected bool $enabled | ||
return | boolean |