Neos.Neos/Classes/Service/Controller/WorkspaceController.php
public function publishNodesAction(array $nodes, $targetWorkspaceName  = null)
    {
        $targetWorkspace = ($targetWorkspaceName !== null) ? $this->workspaceRepository->findOneByName($targetWorkspaceName) : null;
        $this->publishingService->publishNodes($nodes, $targetWorkspace);

        $this->throwStatus(204, 'Nodes published', '');
    }
public function publishNodesAction(array $nodes, $targetWorkspaceName  = null)
    {
        $targetWorkspace = ($targetWorkspaceName !== null) ? $this->workspaceRepository->findOneByName($targetWorkspaceName) : null;
        $this->publishingService->publishNodes($nodes, $targetWorkspace);

        $this->throwStatus(204, 'Nodes published', '');
    }
public function publishNodesAction ( array $ nodes , $ targetWorkspaceName = null ) { $ targetWorkspace = ( $ targetWorkspaceName !== null ) ? $ this -> workspaceRepository -> findOneByName ( $ targetWorkspaceName ) : null ; $ this -> publishingService -> publishNodes ( $ nodes , $ targetWorkspace ) ; $ this -> throwStatus ( 204 , 'Nodes published' , '' ) ; }
Publishes the given nodes to the specified targetWorkspace

@param array<\Neos\ContentRepository\Domain\Model\NodeInterface> $nodes
@param string $targetWorkspaceName
@return void
Publishes the given nodes to the specified targetWorkspace