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

emptyTrash() public method

Empties the trash Everything contained in the trash must be removed.
public emptyTrash ( )
    public function emptyTrash()
    {
        $trashedItems = $this->findTrashItems();
        foreach ($trashedItems as $item) {
            $this->delete($item);
        }
        $this->locationGateway->cleanupTrash();
    }