RouteRepository
interface RouteRepository
Interface RouteRepository
Methods
all()
Returns all route items
findByUrlAndSiteKey(string $url, string $siteKey)
Retrieve a route by url segment and site key
findByInstanceId(string $instanceId)
Retrieve a route by instance identifier
fetchBySiteKey(string $siteKey)
Retrieve routes by site key
fetchByModule(string $module)
Retrieve routes by module name
create(array $input)
Save a new route item and return the instance
bool|null
Details
at line 34
InstanceRoute[]
all()
Returns all route items
at line 43
InstanceRoute
findByUrlAndSiteKey(string $url, string $siteKey)
Retrieve a route by url segment and site key
at line 51
InstanceRoute
findByInstanceId(string $instanceId)
Retrieve a route by instance identifier
at line 59
InstanceRoute[]
fetchBySiteKey(string $siteKey)
Retrieve routes by site key
at line 67
InstanceRoute[]
fetchByModule(string $module)
Retrieve routes by module name
at line 75
InstanceRoute
create(array $input)
Save a new route item and return the instance
at line 83
InstanceRoute
put(InstanceRoute $route)
Save the route item
at line 91
bool|null
delete(InstanceRoute $route)
Delete the route item from the repository