You are here

public static function ContentLockSettingsForm::formProcessMergeParent in Content locking (anti-concurrent editing) 8

Same name and namespace in other branches
  1. 8.2 src/Form/ContentLockSettingsForm.php \Drupal\content_lock\Form\ContentLockSettingsForm::formProcessMergeParent()

Merge elements to the level up.

Render API callback: Moves entity_reference specific Form API elements (i.e. 'handler_settings') up a level for easier processing values.

Parameters

array $element: The array to filter.

Return value

array The array filtered.

See also

_entity_reference_field_settings_process()

File

src/Form/ContentLockSettingsForm.php, line 300

Class

ContentLockSettingsForm
Class ContentLockSettingsForm.

Namespace

Drupal\content_lock\Form

Code

public static function formProcessMergeParent(array $element) {
  $parents = $element['#parents'];
  array_pop($parents);
  $element['#parents'] = $parents;
  return $element;
}