You are here

public function WebformInterface::addWebformVariant in Webform 8.5

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

Saves a webform variant for this webform.

Parameters

\Drupal\webform\Plugin\WebformVariantInterface $variant: The webform variant object.

Return value

string The webform variant ID.

1 method overrides WebformInterface::addWebformVariant()
Webform::addWebformVariant in src/Entity/Webform.php
Saves a webform variant for this webform.

File

src/WebformInterface.php, line 1078

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function addWebformVariant(WebformVariantInterface $variant);