You are here

public function WebformVariantBase::isExcluded in Webform 8.5

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

Checks if the variant is excluded via webform.settings.

Return value

bool TRUE if the variant is excluded.

Overrides WebformVariantInterface::isExcluded

File

src/Plugin/WebformVariantBase.php, line 260

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function isExcluded() {
  return $this->configFactory
    ->get('webform.settings')
    ->get('variant.excluded_variants.' . $this->pluginDefinition['id']) ? TRUE : FALSE;
}