Property | Type | Description | |
---|---|---|---|
$contentDimensionPresetSource | Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface | ||
$contextFactory | |||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | ||
$securityContext |
Method | Description | |
---|---|---|
__construct ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) | ||
isAncestorNodeOf ( string $nodePathOrIdentifier ) : boolean | Matches if the selected node is an *ancestor* of the given node specified by $nodePathOrIdentifier | |
isAncestorOrDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean | Matches if the selected node is a *descendant* or *ancestor* of the given node specified by $nodePathOrIdentifier | |
isDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean | Matches if the selected node is a *descendant* of the given node specified by $nodePathOrIdentifier | |
isInDimensionPreset ( string $dimensionName, string | array $presets ) : boolean | Matches if the currently-selected preset in the passed $dimensionName is one of $presets. | |
isInWorkspace ( array $workspaceNames ) : boolean | Matches if the selected node belongs to one of the given $workspaceNames | |
nodeIsOfType ( string | array $nodeTypes ) : boolean | Matches if the selected node is of the given NodeType(s). If multiple types are specified, only one entry has to match | |
setNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void |
Method | Description | |
---|---|---|
getNodeByIdentifier ( string $nodeIdentifier ) : Neos\ContentRepository\Domain\Model\NodeInterface | Returns a node from the given $nodeIdentifier (disabling authorization checks) | |
resolveNodePath ( string $nodePathOrIdentifier ) : boolean | string | Resolves the given $nodePathOrIdentifier and returns its absolute path and or a boolean if the result directly matches the currently selected node |
public __construct ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface |
protected getNodeByIdentifier ( string $nodeIdentifier ) : Neos\ContentRepository\Domain\Model\NodeInterface | ||
$nodeIdentifier | string | |
return | Neos\ContentRepository\Domain\Model\NodeInterface |
public isAncestorNodeOf ( string $nodePathOrIdentifier ) : boolean | ||
$nodePathOrIdentifier | string | The identifier or absolute path of the node to match |
return | boolean | TRUE if the given node matches otherwise false |
public isAncestorOrDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean | ||
$nodePathOrIdentifier | string | The identifier or absolute path of the node to match |
return | boolean | TRUE if the given node matches otherwise false |
public isDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean | ||
$nodePathOrIdentifier | string | The identifier or absolute path of the node to match |
return | boolean | TRUE if the given node matches otherwise false |
public isInWorkspace ( array $workspaceNames ) : boolean | ||
$workspaceNames | array | An array of workspace names, e.g. ["live", "user-admin"] |
return | boolean | TRUE if the selected node matches the $workspaceNames, otherwise FALSE |
protected resolveNodePath ( string $nodePathOrIdentifier ) : boolean | string | ||
$nodePathOrIdentifier | string | identifier or absolute path for the node to resolve |
return | boolean | string | TRUE if the node matches the selected node, FALSE if the corresponding node does not exist. Otherwise the resolved absolute path with trailing slash |
protected ContentDimensionPresetSourceInterface,Neos\ContentRepository\Domain\Service $contentDimensionPresetSource | ||
return | Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface |
protected ContextFactory,Neos\ContentRepository\Domain\Service $contextFactory | ||
return |
protected NodeInterface,Neos\ContentRepository\Domain\Model $node | ||
return | Neos\ContentRepository\Domain\Model\NodeInterface |