public function MediaMigrationUuidOracle::__construct in Media Migration 8
Constructs MediaMigrationUuidOracle.
Parameters
\Drupal\Core\Database\Connection $database: A database connection.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Component\Uuid\UuidInterface $uuid_generator: The UUID generator service.
File
- src/
MediaMigrationUuidOracle.php, line 48
Class
- MediaMigrationUuidOracle
- Media Migration's UUID oracle.
Namespace
Drupal\media_migrationCode
public function __construct(Connection $database, EntityTypeManagerInterface $entity_type_manager, UuidInterface $uuid_generator) {
$this->database = $database;
$this->mediaStorage = $entity_type_manager
->getStorage('media');
$this->uuidGenerator = $uuid_generator;
}