diff --git a/core/modules/media/src/Entity/Media.php b/core/modules/media/src/Entity/Media.php index 76739dbe48d38a07b909c46f1839d8139a14c76a..2170f91979bd811d4b72f182dfeaa7023d5869c9 100644 --- a/core/modules/media/src/Entity/Media.php +++ b/core/modules/media/src/Entity/Media.php @@ -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', [