PHP Интерфейс Arcanedev\SeoHelper\Contracts\Entities\MiscTags

Автор: ARCANEDEV ([email protected])
Наследование: extends Arcanedev\SeoHelper\Contracts\Renderable
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

add() публичный метод

Add a meta tag.
public add ( string $name, string $content ) : self
$name string
$content string
Результат self

addMany() публичный метод

Add many meta tags.
public addMany ( array $metas ) : self
$metas array
Результат self

getUrl() публичный метод

Get the current URL.
public getUrl ( ) : string
Результат string

make() публичный статический метод

Make MiscTags instance.
public static make ( array $defaults = [] ) : self
$defaults array
Результат self

remove() публичный метод

Remove a meta from the meta collection by key.
public remove ( array | string $names ) : self
$names array | string
Результат self

reset() публичный метод

Reset the meta collection.
public reset ( ) : self
Результат self

setUrl() публичный метод

Set the current URL.
public setUrl ( string $url ) : self
$url string
Результат self