Jackalope\NodeType\NodeTypeManager::unregisterNodeType PHP Method

unregisterNodeType() public method

{@inheritDoc}
public unregisterNodeType ( $name )
    public function unregisterNodeType($name)
    {
        if (!empty($this->primaryTypes[$name])) {
            unset($this->primaryTypes[$name]);
        } elseif (!empty($this->mixinTypes[$name])) {
            unset($this->mixinTypes[$name]);
        } else {
            throw new NoSuchNodeTypeException('NodeType not found: ' . $name);
        }
        throw new NotImplementedException('TODO: remove from nodeTree and register with server (jackrabbit has not implemented this yet)');
    }