You are here

protected function TestWebformVariant::debug in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/modules/webform_test_variant/src/Plugin/WebformVariant/TestWebformVariant.php \Drupal\webform_test_variant\Plugin\WebformVariant\TestWebformVariant::debug()

Display debugging information.

1 call to TestWebformVariant::debug()
TestWebformVariant::applyVariant in tests/modules/webform_test_variant/src/Plugin/WebformVariant/TestWebformVariant.php
Apply variant to the webform.

File

tests/modules/webform_test_variant/src/Plugin/WebformVariant/TestWebformVariant.php, line 90

Class

TestWebformVariant
Webform example variant.

Namespace

Drupal\webform_test_variant\Plugin\WebformVariant

Code

protected function debug() {
  if (empty($this->configuration['debug'])) {
    return;
  }
  $this
    ->messenger()
    ->addWarning('The test variant has been applied');
}