Skip to content
Snippets Groups Projects

Issue #3436514: Log warning instead of error in case of non existing media...

Open s_leu requested to merge issue/drupal-3436514:3436514-no-media-warning into 11.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -298,7 +298,7 @@ public function process($text, $langcode) {
$media = $this->entityRepository->loadEntityByUuid('media', $uuid);
assert($media === NULL || $media instanceof MediaInterface);
if (!$media) {
$this->loggerFactory->get('media')->error('During rendering of embedded media: the media item with UUID "@uuid" does not exist.', ['@uuid' => $uuid]);
$this->loggerFactory->get('media')->warning('During rendering of embedded media: the media item with UUID "@uuid" does not exist.', ['@uuid' => $uuid]);
}
else {
$media = $this->entityRepository->getTranslationFromContext($media, $langcode);
Loading