PHP Interface Arcanedev\SeoHelper\Contracts\Entities\MiscTags

Author: ARCANEDEV ([email protected])
Inheritance: extends Arcanedev\SeoHelper\Contracts\Renderable
Afficher le fichier Open project: arcanedev/seo-helper Interface Usage Examples

Méthodes publiques

Méthode Description
add ( string $name, string $content ) : self Add a meta tag.
addMany ( array $metas ) : self Add many meta tags.
getUrl ( ) : string Get the current URL.
make ( array $defaults = [] ) : self Make MiscTags instance.
remove ( array | string $names ) : self Remove a meta from the meta collection by key.
reset ( ) : self Reset the meta collection.
setUrl ( string $url ) : self Set the current URL.

Method Details

add() public méthode

Add a meta tag.
public add ( string $name, string $content ) : self
$name string
$content string
Résultat self

addMany() public méthode

Add many meta tags.
public addMany ( array $metas ) : self
$metas array
Résultat self

getUrl() public méthode

Get the current URL.
public getUrl ( ) : string
Résultat string

make() public static méthode

Make MiscTags instance.
public static make ( array $defaults = [] ) : self
$defaults array
Résultat self

remove() public méthode

Remove a meta from the meta collection by key.
public remove ( array | string $names ) : self
$names array | string
Résultat self

reset() public méthode

Reset the meta collection.
public reset ( ) : self
Résultat self

setUrl() public méthode

Set the current URL.
public setUrl ( string $url ) : self
$url string
Résultat self