You are here

public function MediaMigrationUuidOracleInterface::getMediaUuid in Media Migration 8

Returns the UUID of a media entity based on its source ID.

Parameters

int $source_id: The original ID of the media entity in the source database.

bool $generate_if_missing: Whether a UUID should be generated if no prophecy was found.

Return value

string|null The UUID of the given media entity.

Throws

\LogicException

1 method overrides MediaMigrationUuidOracleInterface::getMediaUuid()
MediaMigrationUuidOracle::getMediaUuid in src/MediaMigrationUuidOracle.php
Returns the UUID of a media entity based on its source ID.

File

src/MediaMigrationUuidOracleInterface.php, line 23

Class

MediaMigrationUuidOracleInterface
Interface of Media Migration's UUID oracle.

Namespace

Drupal\media_migration

Code

public function getMediaUuid(int $source_id, bool $generate_if_missing = TRUE) : ?string;