You are here

public function WebformVariantBase::isEnabled in Webform 8.5

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

Returns the webform variant enabled indicator.

Return value

bool TRUE if the webform variant is enabled.

Overrides WebformVariantInterface::isEnabled

1 call to WebformVariantBase::isEnabled()
WebformVariantBase::isDisabled in src/Plugin/WebformVariantBase.php
Returns the webform variant disabled indicator.
1 method overrides WebformVariantBase::isEnabled()
BrokenWebformVariant::isEnabled in src/Plugin/WebformVariant/BrokenWebformVariant.php
Returns the webform variant enabled indicator.

File

src/Plugin/WebformVariantBase.php, line 268

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function isEnabled() {
  return $this->status ? TRUE : FALSE;
}