Skip to content
Snippets Groups Projects

Issue #3347291: Combine field storage and field instance forms

Open Srishti Bankar requested to merge issue/drupal-3347291:3347291-combined-forms into 11.x
Compare and
44 files
+ 779
516
Compare changes
  • Side-by-side
  • Inline
Files
44
@@ -6,7 +6,6 @@
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Field\TypedData\FieldItemDataDefinition;
use Drupal\field\Entity\FieldStorageConfig;
/**
* Base class for configurable field definitions.
@@ -475,11 +474,6 @@ public function __sleep() {
// recalculated.
unset($properties['itemDefinition'], $properties['original']);
// Field storage can be recalculated if it's not new.
if (array_key_exists('fieldStorage', $properties) && $properties['fieldStorage'] instanceof FieldStorageConfig && !$properties['fieldStorage']->isNew()) {
unset($properties['fieldStorage']);
}
return array_keys($properties);
}
Loading