Classes/Indexer/NodeIndexer.php
protected function calculateDocumentIdentifier(NodeInterface $node, $targetWorkspaceName = null): string
    {
        $contextPath = $node->getContextPath();

        if ($targetWorkspaceName !== null) {
            $contextPath = str_replace($node->getContext()->getWorkspace()->getName(), $targetWorkspaceName, $contextPath);
        }

        return sha1($contextPath);
    }
protected function calculateDocumentIdentifier(NodeInterface $node, $targetWorkspaceName = null): string
    {
        $contextPath = $node->getContextPath();

        if ($targetWorkspaceName !== null) {
            $contextPath = str_replace($node->getContext()->getWorkspace()->getName(), $targetWorkspaceName, $contextPath);
        }

        return sha1($contextPath);
    }
protected function calculateDocumentIdentifier ( NodeInterface $ node , $ targetWorkspaceName = null ) : string { $ contextPath = $ node -> getContextPath ( ) ; if ( $ targetWorkspaceName !== null ) { $ contextPath = str_replace ( $ node -> getContext ( ) -> getWorkspace ( ) -> getName ( ) , $ targetWorkspaceName , $ contextPath ) ; } return sha1 ( $ contextPath ) ; }
Returns a stable identifier for the Elasticsearch document representing the node

@param NodeInterface $node
@param string $targetWorkspaceName
@return string
@throws \Neos\Flow\Persistence\Exception\IllegalObjectTypeException
Returns a stable identifier for the Elasticsearch document representing the node