class PageEditSlug implements PageEditSlugInterface

Services related to PageEdit Slug

Properties

private PageEditFileInterface $pageEditFile Stores PageEditFileInterface

Methods

__construct(PageEditFileInterface $pageEditFile)

No description

bool
exists(string $slug)

Checks if slug already exists

string
slugify(string $text, bool $keepSlashes = false)

Checks unicity of slugged text against pages collection

Details

at line 28
__construct(PageEditFileInterface $pageEditFile)

Parameters

PageEditFileInterface $pageEditFile

at line 36
bool exists(string $slug)

Checks if slug already exists

Parameters

string $slug

Return Value

bool

at line 52
string slugify(string $text, bool $keepSlashes = false)

Checks unicity of slugged text against pages collection

Parameters

string $text
bool $keepSlashes

Return Value

string