# orion.core.contenttypes

The `orion.core.contenttypes` service provides information about the Content Types that have been registered with Orion.

Here is an example usage showing how to query all registered content types and print them to the console:

    serviceRegistry.getService("orion.core.contenttypes").getContentTypes().then(function(contentTypes) {
      for (var i=0; i < contentTypes.length; i++) {
        var contentType = contentTypes[i];
        console.log("Content Type ID: " + contentType.id + ", " +
                    "name: " + contentType.name + ", " +
                    "extends from: " + contentType['extends'] + ", " +
                    "file extension(s): [" + contentType.extension.join(",") + "], " +
                    "filename(s): [" + contentType.filename.join(",") + "], " +
                    "image: " + contentType.image + "\n");
      }
    });

See `orion.core.ContentTypeService` in the Orion client API reference for a complete list of functions available.