Neos.ContentRepository/Classes/Domain/Service/PublishingService.php
public function discardNodes(array $nodes)
    {
        $discardedNodeIdentifiers = [];
        foreach ($nodes as $node) {
            $this->doDiscardNode($node, $discardedNodeIdentifiers);
        }
    }
public function discardNodes(array $nodes)
    {
        $discardedNodeIdentifiers = [];
        foreach ($nodes as $node) {
            $this->doDiscardNode($node, $discardedNodeIdentifiers);
        }
    }
public function discardNodes ( array $ nodes ) { $ discardedNodeIdentifiers = [ ] ; foreach ( $ nodes as $ node ) { $ this -> doDiscardNode ( $ node , $ discardedNodeIdentifiers ) ; } }
Discards the given nodes.

@param array<\Neos\ContentRepository\Domain\Model\NodeInterface> $nodes The nodes to discard
@return void
@api
Discards the given nodes .