Neos\ContentRepository\Domain\Service\NodeTypeManager::createNodeType PHP Method

createNodeType() public method

Creates a new node type
public createNodeType ( string $nodeTypeName ) : NodeType
$nodeTypeName string Unique name of the new node type. Example: "Neos.Neos:Page"
return Neos\ContentRepository\Domain\Model\NodeType
    public function createNodeType($nodeTypeName)
    {
        throw new Exception('Creation of node types not supported so far; tried to create "' . $nodeTypeName . '".', 1316449432);
    }

Usage Example

 /**
  * @test
  * @expectedException \Neos\ContentRepository\Exception
  */
 public function createNodeTypeAlwaysThrowsAnException()
 {
     $this->nodeTypeManager->createNodeType('Neos.ContentRepository.Testing:ContentObject');
 }