Property | Type | Description | |
---|---|---|---|
$canonical | array | The canonical url. | |
$defaults | * The default configurations. | ||
$description | string | The meta description. | |
$keywords | string | The meta keywords. | |
$max_description_length | integer | The maximal length of the meta description. | |
$title | string | The meta title. |
Method | Description | |
---|---|---|
__construct ( array $defaults = [] ) | Create a new MetaGenerator instance. | |
fromObject ( Calotype\SEO\Contracts\MetaAware $object ) | Use the meta data of a MetaAware object. | |
generate ( ) : string | Render the meta tags. | |
getCanonical ( ) : string | Get the canonical url. | |
getDefault ( string $default ) : mixed | Get a default configuration. | |
getDescription ( ) : string | Get the Meta description. | |
getKeywords ( ) : string | Get the Meta keywords. | |
getTitle ( ) : string | Get the Meta title. | |
reset ( ) : void | Reset the title and description fields. | |
setCanonical ( string $url ) | Set the canonical url. | |
setDescription ( string $description ) | Set the Meta description. | |
setKeywords ( array | string $keywords ) | Set the Meta keywords. | |
setTitle ( string $title ) | Set the Meta title. |
public __construct ( array $defaults = [] ) | ||
$defaults | array |
public fromObject ( Calotype\SEO\Contracts\MetaAware $object ) | ||
$object | Calotype\SEO\Contracts\MetaAware |
public getDefault ( string $default ) : mixed | ||
$default | string | |
return | mixed |
public getDescription ( ) : string | ||
return | string |
public setDescription ( string $description ) | ||
$description | string |
public setKeywords ( array | string $keywords ) | ||
$keywords | array | string |
protected string $description | ||
return | string |
protected int $max_description_length | ||
return | integer |