eZ\Publish\Core\Persistence\Legacy\Content\Location\Trash\Handler::findTrashItems PHP Method

findTrashItems() public method

If no criterion is provided (null), no filter is applied.
public findTrashItems ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion = null, integer $offset, integer $limit = null, array $sort = null ) : eZ\Publish\SPI\Persistence\Content\Location\Trashed[]
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$offset integer Offset to start listing from, 0 by default
$limit integer Limit for the listing. Null by default (no limit)
$sort array
return eZ\Publish\SPI\Persistence\Content\Location\Trashed[]
    public function findTrashItems(Criterion $criterion = null, $offset = 0, $limit = null, array $sort = null)
    {
        // CBA: Ignore criterion for now.
        $rows = $this->locationGateway->listTrashed($offset, $limit, $sort);
        $items = array();
        foreach ($rows as $row) {
            $items[] = $this->locationMapper->createLocationFromRow($row, null, new Trashed());
        }
        return $items;
    }