You are here

public function WebformVariantBase::enable in Webform 8.5

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

Enables the webform variant.

Return value

$this

Overrides WebformVariantInterface::enable

File

src/Plugin/WebformVariantBase.php, line 246

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function enable() {
  return $this
    ->setStatus(TRUE);
}