PHP Class Neos\Neos\Service\PublishingService

Inheritance: extends Neos\ContentRepository\Domain\Service\PublishingService
Show file Open project: neos/neos-development-collection Class Usage Examples

Public Methods

Method Description
publishNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace = null ) : void Publishes the given node to the specified target workspace. If no workspace is specified, the base workspace is assumed.

Method Details

publishNode() public method

If the given node is a Document or has ContentCollection child nodes, these nodes are published as well.
public publishNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace = null ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$targetWorkspace Neos\ContentRepository\Domain\Model\Workspace If not set the base workspace is assumed to be the publishing target
return void