You are here

public function WebformVariantBase::disable in Webform 8.5

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

Disables the webform variant.

Return value

$this

Overrides WebformVariantInterface::disable

File

src/Plugin/WebformVariantBase.php, line 253

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function disable() {
  return $this
    ->setStatus(FALSE);
}