public function WebformInterface::getVariant in Webform 8.5
Same name and namespace in other branches
- 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\webformCode
public function getVariant($variant_id);