The "media_type" entity type does not exist.

Created on 15 June 2024, 14 days ago
Updated 23 June 2024, 5 days ago

In src/Form/AutoTranslatorSettingsForm.php line 93

    $media_types = $this->entityTypeManager
      ->getStorage('media_type')
      ->loadMultiple();

This would seem to assume that the core 'media' module is installed, yet that module is not listed as a dependency.

Solution:

if($this->moduleHandler->moduleExists('media')) {
$media_types = $this->entityTypeManager
->getStorage('media_type')
->loadMultiple();
}

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024