Method |
Description |
|
__construct ( array $config = [] ) |
Configuration. |
|
addAlternateLanguage ( string $lang, string $url ) |
Add an alternate language. |
|
addAlternateLanguages ( array $languages ) : Artesaos\SEOTools\Contracts\MetaTags |
Add alternate languages. |
|
addKeyword ( string | array $keyword ) : Artesaos\SEOTools\Contracts\MetaTags |
Add a keyword. |
|
addMeta ( string | array $meta, string $value = null, string $name = 'name' ) : Artesaos\SEOTools\Contracts\MetaTags |
Add a custom meta tag. |
|
generate ( boolean $minify = false ) : string |
Generates meta tags. |
|
getAlternateLanguages ( ) : array |
Get alternate languages. |
|
getCanonical ( ) : string |
Get the canonical URL. |
|
getDefaultTitle ( ) : string |
Takes the default title. |
|
getDescription ( ) : string |
Get the Meta description. |
|
getKeywords ( ) : array |
Get the Meta keywords. |
|
getMetatags ( ) : array |
Get all metatags. |
|
getNext ( ) : string |
Get the next URL. |
|
getPrev ( ) : string |
Get the prev URL. |
|
getTitle ( ) : string |
Get the title formatted for display. |
|
getTitleSeparator ( ) : string |
Get the title separator that was set. |
|
getTitleSession ( ) : string |
Get the title that was set. |
|
removeMeta ( string $key ) : Artesaos\SEOTools\Contracts\MetaTags |
Remove a metatag. |
|
reset ( ) : void |
Reset all data. |
|
setCanonical ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags |
Sets the canonical URL. |
|
setDescription ( string $description ) : Artesaos\SEOTools\Contracts\MetaTags |
Set the description. |
|
setKeywords ( array $keywords ) : Artesaos\SEOTools\Contracts\MetaTags |
Sets the list of keywords, you can send an array or string separated with commas
also clears the previously set keywords. |
|
setNext ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags |
Sets the next URL. |
|
setPrev ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags |
Sets the prev URL. |
|
setTitle ( string $title, boolean $appendDefault = true ) : Artesaos\SEOTools\Contracts\MetaTags |
Set the title. |
|
setTitleDefault ( string $default ) : Artesaos\SEOTools\Contracts\MetaTags |
Sets the default title tag. |
|
setTitleSeparator ( string $separator ) : Artesaos\SEOTools\Contracts\MetaTags |
Set the title separator. |
|