use of com.enonic.xp.lib.content.mapper.ContentTypeMapper in project xp by enonic.
the class ContentTypeHandler method getContentType.
public ContentTypeMapper getContentType() {
if (name == null || name.isBlank()) {
return null;
}
final GetContentTypeParams params = GetContentTypeParams.from(ContentTypeName.from(name));
final ContentType ctype = contentTypeService.get().getByName(params);
return ctype == null ? null : new ContentTypeMapper(inlineMixins(ctype));
}
Aggregations