NodesController
class NodesController extends ActionController (View source)
Rudimentary REST service for nodes
Traits
A trait to add backend translation based on the backend users settings
Properties
protected Service | $localizationService | from BackendUserTranslationTrait | |
protected UserService | $userService | from BackendUserTranslationTrait | |
protected NodePropertyConverterService | $nodePropertyConverterService | ||
protected PropertyMapper | $propertyMapper | ||
protected ContentRepositoryRegistry | $contentRepositoryRegistry | ||
protected array<string,string> | $viewFormatToObjectNameMap | ||
protected array<int,string> | $supportedMediaTypes | A list of IANA media types which are supported by this controller |
Methods
Set the locale according to the user settings
Shows a list of nodes
Shows a specific node
Create a new node from an existing one
If the node is not found, we first want to figure out whether the node exists in other dimensions or is really non-existent
Adopt (translate) the given node and parents that are not yet visible to the given context
Details
protected void
initializeObject()
Set the locale according to the user settings
void
indexAction(string $searchTerm = '', array $nodeIdentifiers = [], string $workspaceName = 'live', array $dimensions = [], array $nodeTypes = ['Neos.Neos:Document'], string $contextNode = null)
Shows a list of nodes
void
showAction(string $identifier, string $workspaceName = 'live', array $dimensions = [])
Shows a specific node
void
createAction(string $mode, string $identifier, string $workspaceName = 'live', array $dimensions = [], array $sourceDimensions = [])
Create a new node from an existing one
The "mode" property defines the basic mode of operation. Currently supported modes:
'adoptFromAnotherDimension': Adopts the single node from another dimension
- $identifier, $workspaceName and $sourceDimensions specify the source node
- $identifier, $workspaceName and $dimensions specify the target node
protected void
addExistingNodeVariantInformationToResponse(NodeAggregateId $identifier, ContentStreamId $contentStreamIdentifier, DimensionSpacePoint $dimensionSpacePoint, ContentRepository $contentRepository)
If the node is not found, we first want to figure out whether the node exists in other dimensions or is really non-existent
protected void
adoptNodeAndParents(ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateIdentifier, ContentSubgraphInterface $sourceSubgraph, ContentSubgraphInterface $targetSubgraph, DimensionSpacePoint $targetDimensionSpacePoint, ContentRepository $contentRepository, bool $copyContent)
Adopt (translate) the given node and parents that are not yet visible to the given context