function _entityreference_form_process_merge_parent in Entity reference 8
Same name and namespace in other branches
- 7 entityreference.module \_entityreference_form_process_merge_parent()
 
2 string references to '_entityreference_form_process_merge_parent'
- SelectionBase::settingsForm in lib/
Drupal/ entityreference/ Plugin/ entityreference/ selection/ SelectionBase.php  - Implements EntityReferenceHandler::settingsForm().
 - _entityreference_field_settings_process in ./
entityreference.module  - Process handler; Add selection settings.
 
File
- ./
entityreference.module, line 280  - Provides a field that can reference other entities.
 
Code
function _entityreference_form_process_merge_parent($element) {
  $parents = $element['#parents'];
  array_pop($parents);
  $element['#parents'] = $parents;
  return $element;
}