Returns the node type label for the passed node.
Drupal\node\Node $node: A node entity to return the node type's label for.
string|false The node type label or FALSE if the node type is not found.
function node_get_type_label($node) {
$types = _node_types_build()->names;
return isset($types[$node->type]) ? $types[$node->type] : FALSE;
}