protected function WebformTranslationConfigManager::loadWebform in Webform 6.x
Load a configuration name's associated webform.
Parameters
string $config_name: Configuration name.
Return value
\Drupal\webform\WebformInterface The webform associated with the configuration name.
3 calls to WebformTranslationConfigManager::loadWebform()
- WebformTranslationConfigManager::alterConfigWebformForm in src/
WebformTranslationConfigManager.php - Alter the webform configuration form.
- WebformTranslationConfigManager::alterConfigWebformFormElements in src/
WebformTranslationConfigManager.php - Alter the webform configuration form elements.
- WebformTranslationConfigManager::alterConfigWebformFormHandlers in src/
WebformTranslationConfigManager.php - Alter the webform configuration form handlers.
File
- src/
WebformTranslationConfigManager.php, line 1051
Class
- WebformTranslationConfigManager
- Defines a class to translate webform config.
Namespace
Drupal\webformCode
protected function loadWebform($config_name) {
$webform_id = str_replace('webform.webform.', '', $config_name);
return Webform::load($webform_id);
}