diff --git a/src/Commands/core/CliCommands.php b/src/Commands/core/CliCommands.php index 9340102641..e647ababdb 100644 --- a/src/Commands/core/CliCommands.php +++ b/src/Commands/core/CliCommands.php @@ -316,7 +316,7 @@ public function makeEntitiesAvailableWithShortClassNames(): void continue; } // Make it possible to easily load revisions. - eval(sprintf('class %s extends \%s { + eval(sprintf('class %s extends %s { public static function loadRevision($id) { $entity_type_repository = \Drupal::service("entity_type.repository"); $entity_type_manager = \Drupal::entityTypeManager();