You are here

public function WebformContentCreatorEntity::setWebform 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::setWebform()
  2. 2.x src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::setWebform()

Sets the entity webform id.

Parameters

string $webform: Webform id.

Return value

$this The Webform Content Creator entity.

Overrides WebformContentCreatorInterface::setWebform

File

src/Entity/WebformContentCreatorEntity.php, line 188

Class

WebformContentCreatorEntity
Defines the Webform Content creator entity.

Namespace

Drupal\webform_content_creator\Entity

Code

public function setWebform($webform) {
  $this
    ->set('webform', $webform);
  return $this;
}