public function TestEntityMappingWebformHandler::ajaxCallback in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestEntityMappingWebformHandler.php \Drupal\webform_test_handler\Plugin\WebformHandler\TestEntityMappingWebformHandler::ajaxCallback()
Ajax callback.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array An associative array containing entity reference details element.
File
- tests/
modules/ webform_test_handler/ src/ Plugin/ WebformHandler/ TestEntityMappingWebformHandler.php, line 203
Class
- TestEntityMappingWebformHandler
- Webform submission entity mapping test handler.
Namespace
Drupal\webform_test_handler\Plugin\WebformHandlerCode
public function ajaxCallback(array $form, FormStateInterface $form_state) {
return NestedArray::getValue($form, [
'settings',
'bundle_container',
]);
}