Skip to content
Snippets Groups Projects
Commit fe4ab949 authored by Jess Straatmann's avatar Jess Straatmann Committed by Aaron Bauman
Browse files

Issue #3202318 by jastraat: WebformElements.php getPluginDefinition() does not return anything

parent f9835053
No related branches found
No related tags found
No related merge requests found
......@@ -99,12 +99,11 @@ class WebformElements extends SalesforceMappingFieldPluginBase {
$element_parts = explode('__', $this->config('drupal_field_value'));
$main_element_name = reset($element_parts);
$webform = $this->entityTypeManager->getStorage('webform')->load($this->mapping->get('drupal_bundle'));
$definition['config_dependencies']['config'][] = $webform->getConfigDependencyName();
$webform_element = $webform->getElement($main_element_name);
// Unfortunately, the best we can do for webform dependencies is a single
// dependency on the top-level webform, which is itself a monolithic config.
// @TODO implement webform-element-changed hook, if that exists.
$definition['config_dependencies']['config'][] = $webform->getConfigDependencyName();
return $definition;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment