Property | Type | Description | |
---|---|---|---|
$contentDimensionPresetSource | Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface | ||
$contextFactory | Neos\ContentRepository\Domain\Service\ContextFactoryInterface | ||
$nodeDataRepository | |||
$nodeFactory | |||
$workspaceRepository |
Method | Description | |
---|---|---|
discardAllNodes ( |
Discards all unpublished nodes of the given workspace. | |
discardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void | Discards the given node. | |
discardNodes ( array $nodes ) : void | Discards the given nodes. | |
emitNodeDiscarded ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void | Signals that a node has been discarded. | |
emitNodePublished ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
Signals that a node has been published. | |
getUnpublishedNodes ( |
Returns a list of nodes contained in the given workspace which are not yet published | |
getUnpublishedNodesCount ( |
Returns the number of unpublished nodes contained in the given workspace | |
publishNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
Publishes the given node to the specified target workspace. If no workspace is specified, the source workspace's base workspace is assumed. | |
publishNodes ( array $nodes, |
Publishes the given nodes to the specified target workspace. If no workspace is specified, the source workspace's base workspace is assumed. |
Method | Description | |
---|---|---|
createContext ( |
Creates a new content context based on the given workspace and the NodeData object. | |
doDiscardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array &$alreadyDiscardedNodeIdentifiers = [] ) : void | Method which does the actual work of discarding, includes a protection against endless recursions and multiple discarding of the same node. | |
sortNodesForPublishing ( array $nodes ) : array | Sort an unsorted list of nodes in a publishable order |
protected createContext ( |
||
$workspace | Workspace for the new context | |
$dimensionValues | array | The dimension values for the new context |
$contextProperties | array | Additional pre-defined context properties |
return |
public discardAllNodes ( |
||
$workspace | The workspace to flush, can't be the live workspace | |
return | void |
public discardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node to discard |
return | void |
public discardNodes ( array $nodes ) : void | ||
$nodes | array | |
return | void |
protected doDiscardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array &$alreadyDiscardedNodeIdentifiers = [] ) : void | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node to discard |
$alreadyDiscardedNodeIdentifiers | array | |
return | void |
public emitNodeDiscarded ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | |
return | void |
public emitNodePublished ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | |
$targetWorkspace | ||
return | void |
public getUnpublishedNodes ( |
||
$workspace | ||
return | array<\Neos\ContentRepository\Domain\Model\NodeInterface> |
public getUnpublishedNodesCount ( |
||
$workspace | ||
return | integer |
public publishNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | |
$targetWorkspace | If not set the base workspace is assumed to be the publishing target | |
return | void |
public publishNodes ( array $nodes, |
||
$nodes | array | |
$targetWorkspace | If not set the base workspace is assumed to be the publishing target | |
return | void |
protected sortNodesForPublishing ( array $nodes ) : array | ||
$nodes | array | Unsorted list of nodes (unpublished nodes) |
return | array | Sorted list of nodes for publishing |
protected ContentDimensionPresetSourceInterface,Neos\ContentRepository\Domain\Service $contentDimensionPresetSource | ||
return | Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface |
protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory | ||
return | Neos\ContentRepository\Domain\Service\ContextFactoryInterface |
protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository | ||
return |
protected NodeFactory,Neos\ContentRepository\Domain\Factory $nodeFactory | ||
return |