public function Webform::hasVariants in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::hasVariants()
Determine if the webform's elements include variants.
Return value
bool TRUE if the webform's elements include variants.
Overrides WebformInterface::hasVariants
File
- src/
Entity/ Webform.php, line 804
Class
- Webform
- Defines the webform entity.
Namespace
Drupal\webform\EntityCode
public function hasVariants() {
$this
->initElements();
return !empty($this->elementsVariant) ? TRUE : FALSE;
}