If a UI pattern is being used on a media entity, the following notice will be displayed:
Notice: Undefined index: #entity_type in ui_patterns_layouts_entity_view_alter() (line 65 of /modules/contrib/ui_patterns/modules/ui_patterns_layouts/ui_patterns_layouts.module)
If a UI pattern is being used on a media entity, the following notice will be displayed: Notice: Undefined index: #entity_type in ui_patterns_layouts_entity_view_alter() (line 65 of /modules/contrib/ui_patterns/modules/ui_patterns_layouts/ui_patterns_layouts.module)
Occurred in the following case: