Themosis\Route\Route::condition PHP Method

condition() public method

Get the WordPress condition.
public condition ( ) : string
return string
    public function condition()
    {
        return $this->condition;
    }

Usage Example

 /**
  * Add the given route to the arrays of routes.
  *
  * @param \Themosis\Route\Route $route
  * @return void
  */
 protected function addToCollection(Route $route)
 {
     foreach ($route->methods() as $method) {
         static::$routes[$method][$route->condition()][] = $route;
         static::$allRoutes[$method . $route->condition()][] = $route;
     }
 }
All Usage Examples Of Themosis\Route\Route::condition