You are here

public function TestEntityMappingWebformHandler::ajaxCallback in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 180

Class

TestEntityMappingWebformHandler
Webform submission entity mapping test handler.

Namespace

Drupal\webform_test_handler\Plugin\WebformHandler

Code

public function ajaxCallback(array $form, FormStateInterface $form_state) {
  return NestedArray::getValue($form, [
    'settings',
    'bundle_container',
  ]);
}