You are here

public function GathercontentMapping::getFormattedContentType in GatherContent 8

Return value

string

File

src/Entity/GathercontentMapping.php, line 158

Class

GathercontentMapping
Defines the GatherContent Mapping entity.

Namespace

Drupal\gathercontent\Entity

Code

public function getFormattedContentType() {
  $content_type = $this
    ->get('content_type_name');
  if (!empty($content_type)) {
    return $content_type;
  }
  else {
    return t('None');
  }
}