Commit 95c7c9ec authored by catch's avatar catch

Issue #3066674 by Charlie ChX Negyesi: Missing typehints in SqlFieldableEntityTypeListenerTrait

parent e39262bf
......@@ -11,6 +11,9 @@
*
* @see \Drupal\Core\Entity\EntityTypeListenerInterface
*
* @property \Drupal\Core\Entity\EntityTypeManagerInterface entityTypeManager
* @property \Drupal\Core\Database\Connection database
*
* @internal
*/
trait SqlFieldableEntityTypeListenerTrait {
......@@ -174,6 +177,7 @@ protected function copyData(EntityTypeInterface $entity_type, EntityTypeInterfac
/** @var \Drupal\Core\Entity\ContentEntityInterface[] $entities */
$entities = $load_revisions ? $this->storage->loadMultipleRevisions($entity_identifiers) : $this->storage->loadMultiple($entity_identifiers);
/** @var \Drupal\Core\Entity\Sql\SqlContentEntityStorage $temporary_storage */
$temporary_storage = $this->entityTypeManager->createHandlerInstance($entity_type->getStorageClass(), $entity_type);
$temporary_storage->setEntityType($entity_type);
$temporary_storage->setFieldStorageDefinitions($field_storage_definitions);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment