public static function BlockFieldItem::formProcessMergeParent in Block field 8
Render API callback.
Moves block_field specific Form API elements (i.e. 'selection_settings') up a level for easier processing by the validation and submission selections.
File
- src/
Plugin/ Field/ FieldType/ BlockFieldItem.php, line 256
Class
- BlockFieldItem
- Plugin implementation of the 'block_field' field type.
Namespace
Drupal\block_field\Plugin\Field\FieldTypeCode
public static function formProcessMergeParent($element) {
$parents = $element['#parents'];
array_pop($parents);
$element['#parents'] = $parents;
return $element;
}