Neos.ContentRepository/Classes/Domain/Model/NodeTemplate.php
public function setIdentifier($identifier)
    {
        if (preg_match(NodeIdentifierValidator::PATTERN_MATCH_NODE_IDENTIFIER, $identifier) !== 1) {
            throw new \InvalidArgumentException(sprintf('Invalid UUID "%s" given.', $identifier), 1385026112);
        }
        $this->identifier = $identifier;
    }
public function setIdentifier($identifier)
    {
        if (preg_match(NodeIdentifierValidator::PATTERN_MATCH_NODE_IDENTIFIER, $identifier) !== 1) {
            throw new \InvalidArgumentException(sprintf('Invalid UUID "%s" given.', $identifier), 1385026112);
        }
        $this->identifier = $identifier;
    }
public function setIdentifier ( $ identifier ) { if ( preg_match ( NodeIdentifierValidator :: PATTERN_MATCH_NODE_IDENTIFIER , $ identifier ) !== 1 ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid UUID "%s" given.' , $ identifier ) , 1385026112 ) ; } $ this -> identifier = $ identifier ; }
Allows to set a UUID to use for the node that will be created from this
NodeTemplate. Use with care, usually identifier generation should be left
to the ContentRepository.

@param string $identifier
@return void
@throws \InvalidArgumentException
Allows to set a UUID to use for the node that will be created from this NodeTemplate . Use with care usually identifier generation should be left to the ContentRepository .