function _unique_field_ajax in Unique field ajax 8
Same name and namespace in other branches
- 2.x unique_field_ajax.module \_unique_field_ajax()
Parameters
array $form:
\Drupal\Core\Form\FormStateInterface $form_state:
Return value
mixed
1 string reference to '_unique_field_ajax'
- _unique_field_ajax_process in ./
unique_field_ajax.module - Attach ajax to unique field.
File
- ./
unique_field_ajax.module, line 143 - Unique value for cck fields check module.
Code
function _unique_field_ajax(array &$form, FormStateInterface $form_state) {
$element = $form_state
->getTriggeringElement();
return NestedArray::getValue($form, $element['#array_parents']);
}