You are here

public function WebformContentCreatorEntity::setContentType in Webform Content Creator 8

Same name and namespace in other branches
  1. 3.x src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::setContentType()

Sets the content type entity.

Parameters

string $contentType: Content type entity.

Return value

$this The Webform Content Creator entity.

Overrides WebformContentCreatorInterface::setContentType

File

src/Entity/WebformContentCreatorEntity.php, line 165

Class

WebformContentCreatorEntity
Defines the Webform Content creator entity.

Namespace

Drupal\webform_content_creator\Entity

Code

public function setContentType($contentType) {
  $this
    ->set('content_type', $contentType);
  return $this;
}