Skip to content

Commit

Permalink
restore ImportController to uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
janette committed Nov 21, 2023
1 parent 133f5cf commit 3cfad4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/datastore/src/Controller/ImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\common\JsonResponseTrait;
use Drupal\Component\Uuid\UuidInterface;
use Drupal\Component\Uuid\Uuid;
use Drupal\datastore\DatastoreService;
use Drupal\metastore\MetastoreApiResponse;
use Drupal\metastore\Reference\ReferenceLookup;
Expand Down Expand Up @@ -87,7 +87,7 @@ public function summary(string $identifier, Request $request) {
*/
private function getDependencies($identifier) {
// If a proper UUID, probably a distribution.
if (UuidInterface::isValid($identifier)) {
if (Uuid::isValid($identifier)) {
$distributions = [$identifier];
}
elseif (strlen($identifier) == 52) {
Expand Down

0 comments on commit 3cfad4b

Please sign in to comment.