public function BlockFieldSelectionBase::formProcessMergeParent in Block field 8
Move settings up a level for easier processing and storage.
File
- src/
BlockFieldSelectionBase.php, line 77
Class
- BlockFieldSelectionBase
- Base class for Block field selection plugins.
Namespace
Drupal\block_fieldCode
public function formProcessMergeParent($element) {
$parents = $element['#parents'];
array_pop($parents);
$element['#parents'] = $parents;
return $element;
}