You are here

public function WebformContentCreatorEntity::setContentType in Webform Content Creator 3.x

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

Sets the content type entity.

Parameters

string $content_type: Content type entity.

Return value

$this The Webform Content Creator entity.

Overrides WebformContentCreatorInterface::setContentType

File

src/Entity/WebformContentCreatorEntity.php, line 164

Class

WebformContentCreatorEntity
Defines the Webform Content creator entity.

Namespace

Drupal\webform_content_creator\Entity

Code

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