Neos\ContentRepository\Domain\Model\NodeInterface::getIdentifier PHP Метод

getIdentifier() публичный Метод

This UUID is not the same as the technical persistence identifier used by Flow's persistence framework. It is an additional identifier which is unique within the same workspace and is used for tracking the same node in across workspaces. It is okay and recommended to use this identifier for synchronisation purposes as it does not change even if all of the nodes content or its path changes.
public getIdentifier ( ) : string
Результат string the node's UUID
    public function getIdentifier();

Usage Example

 /**
  * Schedules flushing of the routing cache entries for the given $node
  * Note that child nodes are flushed automatically because they are tagged with all parents.
  *
  * @param NodeInterface $node The node which has changed in some way
  * @return void
  */
 public function registerNodeChange(NodeInterface $node)
 {
     if (in_array($node->getIdentifier(), $this->tagsToFlush)) {
         return;
     }
     if (!$node->getNodeType()->isOfType('Neos.Neos:Document')) {
         return;
     }
     $this->tagsToFlush[] = $node->getIdentifier();
 }
All Usage Examples Of Neos\ContentRepository\Domain\Model\NodeInterface::getIdentifier