You are here

function _empty_fields_config_form in Empty fields 8

Handles switching the handler type selector.

1 string reference to '_empty_fields_config_form'
empty_fields_field_formatter_third_party_settings_form in ./empty_fields.module
Implements hook_field_formatter_third_party_settings_form().

File

./empty_fields.module, line 77
Contains the implementation for the empty_fields module.

Code

function _empty_fields_config_form($form, FormStateInterface $form_state) {
  $parents = $form_state
    ->getTriggeringElement()['#array_parents'];
  array_pop($parents);
  $parents[] = 'settings';
  return NestedArray::getValue($form, $parents);
}