interface ServiceSlugInterface

Interface to be called for DI for ServiceSlugInterface related services

Methods

bool
exists(string $object, string $slug)

Checks if slug already exists

string|null
match(string $route, object $object, string $slug)

Checks if the slug provided in the url matches the product one or will provide the redirect url

string
slugify(string $object, string $text)

Checks unicity of slugged text against collection of $object ('Bundle:Entity')

Details

at line 23
bool exists(string $object, string $slug)

Checks if slug already exists

Parameters

string $object
string $slug

Return Value

bool

at line 29
string|null match(string $route, object $object, string $slug)

Checks if the slug provided in the url matches the product one or will provide the redirect url

Parameters

string $route
object $object
string $slug

Return Value

string|null

at line 35
string slugify(string $object, string $text)

Checks unicity of slugged text against collection of $object ('Bundle:Entity')

Parameters

string $object
string $text

Return Value

string