Route
class Route implements RouteInterface, HasQueryFilterInterface (View source)
Represent a route
Traits
Represent an object which has an array of attributes.
Represent an object which has a WordPress query filter attribute.
Methods
attribute(string $attribute, mixed $value)
Fluent alias for setAttribute().
from HasAttributesTrait
attributes(array $attributes)
Fluent alias for setAttributes().
from HasAttributesTrait
array
from HasQueryFilterTrait
boolean
array
Details
in HasQueryFilterTrait at line 34
abstract mixed
getAttribute(string $attribute, mixed $default = '')
Get attribute.
in HasAttributesTrait at line 41
array
getAttributes()
Get all attributes.
in HasAttributesTrait at line 52
void
setAttribute(string $attribute, mixed $value)
Set attribute.
in HasAttributesTrait at line 67
HasAttributesTrait
attribute(string $attribute, mixed $value)
Fluent alias for setAttribute().
in HasAttributesTrait at line 80
void
setAttributes(array $attributes)
Set all attributes.
No attempt to merge attributes is done - this is a direct overwrite operation.
in HasAttributesTrait at line 91
HasAttributesTrait
attributes(array $attributes)
Fluent alias for setAttributes().
in HasQueryFilterTrait at line 43
array
applyQueryFilter(RequestInterface $request, array $query_vars)
Apply the query filter, if any.
at line 27
boolean
isSatisfied(RequestInterface $request)
Get whether the route is satisfied.
at line 45
array
getArguments(RequestInterface $request)
Get arguments.