Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
|
@ -67,12 +67,15 @@ class FieldLayoutBuilder implements ContainerInjectionInterface {
|
|||
$regions = array_fill_keys($layout_definition->getRegionNames(), []);
|
||||
|
||||
foreach ($fields as $name => $field) {
|
||||
// Move the field from the top-level of $build into a region-specific
|
||||
// section.
|
||||
// If the region is controlled by the layout, move the field from the
|
||||
// top-level of $build into a region-specific section. Custom regions
|
||||
// could be set by other code at run-time; these should be ignored.
|
||||
// @todo Ideally the array structure would remain unchanged, see
|
||||
// https://www.drupal.org/node/2846393.
|
||||
$regions[$field['region']][$name] = $build[$name];
|
||||
unset($build[$name]);
|
||||
if (isset($regions[$field['region']])) {
|
||||
$regions[$field['region']][$name] = $build[$name];
|
||||
unset($build[$name]);
|
||||
}
|
||||
}
|
||||
// Ensure this will not conflict with any existing array elements by
|
||||
// prefixing with an underscore.
|
||||
|
@ -103,7 +106,7 @@ class FieldLayoutBuilder implements ContainerInjectionInterface {
|
|||
// avoids breaking hook_form_alter() implementations by not actually
|
||||
// moving the field in the form structure. If a #group is already set,
|
||||
// do not overwrite it.
|
||||
if (!isset($build[$name]['#group'])) {
|
||||
if (isset($regions[$field['region']]) && !isset($build[$name]['#group'])) {
|
||||
$build[$name]['#group'] = $field['region'];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,6 +87,8 @@ trait FieldLayoutEntityDisplayFormTrait {
|
|||
'#tree' => TRUE,
|
||||
];
|
||||
|
||||
$form['field_layouts']['settings_wrapper']['icon'] = $layout_plugin->getPluginDefinition()->getIcon();
|
||||
|
||||
if ($layout_plugin instanceof PluginFormInterface) {
|
||||
$form['field_layouts']['settings_wrapper']['layout_settings'] = [];
|
||||
$subform_state = SubformState::createForSubform($form['field_layouts']['settings_wrapper']['layout_settings'], $form, $form_state);
|
||||
|
|
|
@ -10,6 +10,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
|
||||
/**
|
||||
* Edit form for the EntityFormDisplay entity type.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class FieldLayoutEntityFormDisplayEditForm extends EntityFormDisplayEditForm {
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
|
||||
/**
|
||||
* Edit form for the EntityViewDisplay entity type.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class FieldLayoutEntityViewDisplayEditForm extends EntityViewDisplayEditForm {
|
||||
|
||||
|
|
Reference in a new issue