You are here

function entity_reference_revisions_settings_ajax in Entity Reference Revisions 8

Ajax callback for the handler settings form.

See also

entity_reference_revisions_field_field_settings_form()

1 string reference to 'entity_reference_revisions_settings_ajax'
_entity_reference_revisions_field_field_settings_ajax_process_element in ./entity_reference_revisions.module
Adds entity_reference specific properties to AJAX form elements from the field settings form.

File

./entity_reference_revisions.module, line 153
Provides a field that can reference other entities.

Code

function entity_reference_revisions_settings_ajax($form, FormStateInterface $form_state) {
  return NestedArray::getValue($form, $form_state
    ->getTriggeringElement()['#ajax']['element']);
}