You are here

public function WebformVariantBase::setStatus in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformVariantBase.php \Drupal\webform\Plugin\WebformVariantBase::setStatus()

Sets the status for this webform variant.

Parameters

bool $status: The status for this webform variant.

Return value

$this

Overrides WebformVariantInterface::setStatus

2 calls to WebformVariantBase::setStatus()
WebformVariantBase::disable in src/Plugin/WebformVariantBase.php
Disables the webform variant.
WebformVariantBase::enable in src/Plugin/WebformVariantBase.php
Enables the webform variant.

File

src/Plugin/WebformVariantBase.php, line 216

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function setStatus($status) {
  $this->status = $status;
  return $this;
}