Property | Type | Description | |
---|---|---|---|
$properties | array | The properties that we are going to generate. | |
$required | array | The properties that are required. |
Method | Description | |
---|---|---|
fromObject ( Calotype\SEO\Contracts\OpenGraphAware $object ) | Use the open graph data of a open graph aware object. | |
fromRaw ( array $properties ) | Set the open graph properties from a raw array. | |
generate ( ) : string | Render the open graph tags. | |
reset ( ) : void | Reset all the properties. |
Method | Description | |
---|---|---|
validateProperties ( array $properties ) | Validate to make sure the properties contain all required ones. |
public fromObject ( Calotype\SEO\Contracts\OpenGraphAware $object ) | ||
$object | Calotype\SEO\Contracts\OpenGraphAware |
protected validateProperties ( array $properties ) | ||
$properties | array |
protected array $properties | ||
return | array |
protected array $required | ||
return | array |