eZ\Publish\Core\Persistence\Legacy\Content\Location\Trash\Handler::emptyTrash PHP Метод

emptyTrash() публичный Метод

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();
    }