Commit 7aa35b3f authored by catch's avatar catch
Browse files

Issue #3260173 by andregp, joachim, tstoeckler, nod_: Media should set the...

Issue #3260173 by andregp, joachim, tstoeckler, nod_: Media should set the owner field to anonymous if no explicit owner is set
parent bfccb136
Loading
Loading
Loading
Loading
+1 −0
Changes for core/modules/media/src/Entity/Media.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -454,6 +454,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {

    $fields['uid']
      ->setLabel(t('Authored by'))
      ->setRequired(TRUE)
      ->setDescription(t('The user ID of the author.'))
      ->setRevisionable(TRUE)
      ->setDisplayOptions('form', [