Neos\Neos\Service\Controller\WorkspaceController::publishNodesAction PHP 메소드

publishNodesAction() 공개 메소드

Publishes the given nodes to the specified targetWorkspace
public publishNodesAction ( array $nodes, string $targetWorkspaceName = null ) : void
$nodes array
$targetWorkspaceName string
리턴 void
    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', '');
    }