library/ZF2DoctrineCrudHandler/src/ZF2DoctrineCrudHandler/Request/RequestHandler.php
protected static function filterEntity($filter, $entity) {
		if ($filter !== null && $filter($entity) === false) {
			return false;
		} else {
			return $entity;
		}
	}
protected static function filterEntity($filter, $entity) {
		if ($filter !== null && $filter($entity) === false) {
			return false;
		} else {
			return $entity;
		}
	}
protected static function filterEntity ( $ filter , $ entity ) { if ( $ filter !== null && $ filter ( $ entity ) === false ) { return false ; } else { return $ entity ; } }
Use given entityFilter to check if entity is allowed

@param object $entity Doctrine-Entity

@return object|boolean
Use given entityFilter to check if entity is allowed