public function WebformEntityInjectionTrait::getWebform in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformEntityInjectionTrait.php \Drupal\webform\Plugin\WebformEntityInjectionTrait::getWebform()
Get the webform that this handler is attached to.
Return value
\Drupal\webform\WebformInterface A webform.
10 calls to WebformEntityInjectionTrait::getWebform()
- ExampleWebformVariant::applyVariant in modules/
webform_example_variant/ src/ Plugin/ WebformVariant/ ExampleWebformVariant.php - Apply variant to the webform.
- OverrideWebformVariant::applyVariant in src/
Plugin/ WebformVariant/ OverrideWebformVariant.php - Apply variant to the webform.
- OverrideWebformVariant::buildConfigurationForm in src/
Plugin/ WebformVariant/ OverrideWebformVariant.php - Form constructor.
- OverrideWebformVariant::validateConfigurationForm in src/
Plugin/ WebformVariant/ OverrideWebformVariant.php - Form validation handler.
- TestWebformVariant::applyVariant in tests/
modules/ webform_test_variant/ src/ Plugin/ WebformVariant/ TestWebformVariant.php - Apply variant to the webform.
File
- src/
Plugin/ WebformEntityInjectionTrait.php, line 48
Class
- WebformEntityInjectionTrait
- Provides an webform/webform submission entity inject trait.
Namespace
Drupal\webform\PluginCode
public function getWebform() {
return $this->webform;
}