PHP Класс Arcanedev\SeoHelper\Entities\MiscTags

Автор: ARCANEDEV ([email protected])
Наследование: implements Arcanedev\SeoHelper\Contracts\Entities\MiscTagsInterface, use trait Arcanedev\Support\Traits\Configurable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$currentUrl string Current URL.
$metas Arcanedev\SeoHelper\Contracts\Entities\MetaCollection Meta collection.

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

Метод Описание
__construct ( array $configs = [] ) Make MiscTags instance.
__toString ( ) : string Render the tag.
add ( string $name, string $content ) : MiscTags Add a meta tag.
addMany ( array $metas ) : MiscTags Add many meta tags.
getUrl ( ) : string Get the current URL.
make ( array $defaults = [] ) : MiscTags Make MiscTags instance.
remove ( array | string $names ) : MiscTags Remove a meta from the meta collection by key.
render ( ) : string Render the tag.
reset ( ) : MiscTags Reset the meta collection.
setUrl ( string $url ) : MiscTags Set the current URL.

Приватные методы

Метод Описание
addCanonical ( ) : MiscTags Add the canonical link.
addRobotsMeta ( ) : MiscTags Add the robots meta.
hasUrl ( ) : boolean Check if has the current URL.
init ( ) Start the engine.
isCanonicalEnabled ( ) : boolean Check if canonical is enabled.
isRobotsEnabled ( ) : boolean Check if blocking robots is enabled.

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

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

Make MiscTags instance.
public __construct ( array $configs = [] )
$configs array

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

Render the tag.
public __toString ( ) : string
Результат string

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

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

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

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

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

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

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

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

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

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

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

Render the tag.
public render ( ) : string
Результат string

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

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

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

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

Описание свойств

$currentUrl защищенное свойство

Current URL.
protected string $currentUrl
Результат string

$metas защищенное свойство

Meta collection.
protected MetaCollection,Arcanedev\SeoHelper\Contracts\Entities $metas
Результат Arcanedev\SeoHelper\Contracts\Entities\MetaCollection