Themosis\Route\Route::getWpValidators PHP Method

getWpValidators() public method

Get matching validators.
public getWpValidators ( ) : array
return array
    public function getWpValidators()
    {
        // To match the route, we will use a chain of responsibility pattern with the
        // validator implementations. We will spin through each one making sure it
        // passes and then we will know if the route as a whole matches request.
        return [new ConditionMatching()];
    }