You are here

public function WebformInterface::getVariants in Webform 8.5

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

Returns the webform variants for this webform.

Parameters

string $plugin_id: (optional) Plugin id used to return specific plugin instances (i.e. variants).

bool $status: (optional) Status used to return enabled or disabled plugin instances (i.e. variants).

bool $element_key: (optional) Element key used to return enabled or disabled plugin instances (i.e. variants).

Return value

\Drupal\webform\Plugin\WebformVariantPluginCollection|\Drupal\webform\Plugin\WebformVariantInterface[] The webform variant plugin collection.

1 method overrides WebformInterface::getVariants()
Webform::getVariants in src/Entity/Webform.php
Returns the webform variants for this webform.

File

src/WebformInterface.php, line 1067

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function getVariants($plugin_id = NULL, $status = NULL, $element_key = NULL);