You are here

public function WebformVariantBase::isApplicable in Webform 8.5

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

Determine if this variant is applicable to the webform.

Parameters

\Drupal\webform\WebformInterface $webform: A webform.

Return value

bool TRUE if this variant is applicable to the webform.

Overrides WebformVariantInterface::isApplicable

1 call to WebformVariantBase::isApplicable()
WebformVariantBase::applyVariant in src/Plugin/WebformVariantBase.php
Apply variant to the webform.
2 methods override WebformVariantBase::isApplicable()
ExampleWebformVariant::isApplicable in modules/webform_example_variant/src/Plugin/WebformVariant/ExampleWebformVariant.php
Determine if this variant is applicable to the webform.
TestWebformVariant::isApplicable in tests/modules/webform_test_variant/src/Plugin/WebformVariant/TestWebformVariant.php
Determine if this variant is applicable to the webform.

File

src/Plugin/WebformVariantBase.php, line 282

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function isApplicable(WebformInterface $webform) {
  return TRUE;
}