You are here

public function WebformInterface::getVariant in Webform 8.5

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

Returns a specific webform variant.

Parameters

string $variant_id: The webform variant ID.

Return value

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

1 method overrides WebformInterface::getVariant()
Webform::getVariant in src/Entity/Webform.php
Returns a specific webform variant.

File

src/WebformInterface.php, line 1049

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function getVariant($variant_id);