You are here

public function Mapping::setContentType in GatherContent 8.5

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

Setter for content type machine name.

Parameters

string $content_type: Content type machine name.

Overrides MappingInterface::setContentType

File

src/Entity/Mapping.php, line 210

Class

Mapping
Defines the GatherContent Mapping entity.

Namespace

Drupal\gathercontent\Entity

Code

public function setContentType($content_type) {
  $this->content_type = $content_type;
}