public function getNodeTypes($nodeTypes = array())
{
$standardTypes = StandardNodeTypes::getNodeTypeData();
$userTypes = $this->fetchUserNodeTypes();
if ($nodeTypes) {
$nodeTypes = array_flip($nodeTypes);
return array_values(array_intersect_key($standardTypes, $nodeTypes) + array_intersect_key($userTypes, $nodeTypes));
}
return array_values($standardTypes + $userTypes);
}