Active
Project:
Drupal core
Version:
main
Component:
media system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2026 at 16:25 UTC
Updated:
3 Jun 2026 at 16:37 UTC
Jump to comment: Most recent
\Drupal\media\Entity\Media::getName() can return NULL if $media_source->getMetadata($this, $media_source->getPluginDefinition()['default_name_metadata_attribute']) returns NULL.
Use the https://www.drupal.org/project/media_entity_instagram module. Link to an instragram with the media system, then delete the instragram. BOOM you'll get an error when trying to edit the media item because Html::escape() does not accept a NULL
Fallback to a label based on the media ID and a message about it being broken.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments