You are here

public function WebformInterface::hasVariant in Webform 8.5

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

Determine if a specific webform variant exists.

Parameters

string $variant_id: The webform variant ID.

Return value

bool TRUE if a specific webform variant exists.

1 method overrides WebformInterface::hasVariant()
Webform::hasVariant in src/Entity/Webform.php
Determine if a specific webform variant exists.

File

src/WebformInterface.php, line 1038

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function hasVariant($variant_id);