protected _filter ( string $method, array $params, Closure $callback, array $filters = [] ) : mixed | ||
$method | string | The name of the method being executed, usually the value of `__METHOD__`. |
$params | array | An associative array containing all the parameters passed into the method. |
$callback | Closure | The method's implementation, wrapped in a closure. |
$filters | array | Additional filters to apply to the method for this call only. |
return | mixed | Returns the return value of `$callback`, modified by any filters passed in `$filters` or applied with `applyFilter()`. |