You are here

public function Mapping::getContentType in GatherContent 8.3

Same name and namespace in other branches
  1. 8.5 src/Entity/Mapping.php \Drupal\gathercontent\Entity\Mapping::getContentType()
  2. 8.4 src/Entity/Mapping.php \Drupal\gathercontent\Entity\Mapping::getContentType()

Getter for content type machine name.

Return value

string Content type machine name.

Overrides MappingInterface::getContentType

File

src/Entity/Mapping.php, line 183

Class

Mapping
Defines the GatherContent Mapping entity.

Namespace

Drupal\gathercontent\Entity

Code

public function getContentType() {
  return $this
    ->get('content_type');
}