PHP Interface Arcanedev\SeoHelper\Contracts\Entities\MiscTags

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

Public Methods

Method 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 method

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

addMany() public method

Add many meta tags.
public addMany ( array $metas ) : self
$metas array
return self

getUrl() public method

Get the current URL.
public getUrl ( ) : string
return string

make() public static method

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

remove() public method

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

reset() public method

Reset the meta collection.
public reset ( ) : self
return self

setUrl() public method

Set the current URL.
public setUrl ( string $url ) : self
$url string
return self