You are here

public function WebformVariantBase::getWeight in Webform 8.5

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

Returns the weight of the webform variant.

Return value

int|string Either the integer weight of the webform variant, or an empty string.

Overrides WebformVariantInterface::getWeight

1 call to WebformVariantBase::getWeight()
WebformVariantBase::getConfiguration in src/Plugin/WebformVariantBase.php
Gets this plugin's configuration.

File

src/Plugin/WebformVariantBase.php, line 239

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function getWeight() {
  return $this->weight;
}