Use EntityTypeManagerInterface instead of EntityTypeManager
<!-- Please search existing work items before filing to avoid duplicates. --> ## Summary Various bits of the code reference `EntityTypeManager` rather than `EntityTypeManagerInterface`, making it difficult to integrate with modules which don't directly extend core's Entity type manager, e.g. the Trash module. https://git.drupalcode.org/search?search=entitytypemanager&nav_source=navbar&project_id=106525&group_id=2&search_code=true&repository_ref=1.x <!-- Briefly describe the bug in one or two sentences. A good title already sets the context — use this to add any detail that doesn't fit in the title. --> <!-- Testing Setup (optional — to reproduce on a clean install): mkdir my-drupal-site && cd my-drupal-site ddev config --project-type=drupal11 --docroot=web ddev composer create-project drupal/cms ddev drush site:install --account-name=admin --account-pass=admin -y # Enable AI Dashboard and ai_api_explorer # Launch the site and open the AI dashboard to add an OpenAI or Anthropic key: ddev launch $(ddev drush uli /admin/config/ai) --> ## Steps to reproduce 1. Install Trash module (3.1.x - commit containing [this change](https://git.drupalcode.org/project/trash/-/commit/91bff572cb825051a6754bff72ec4cf5a1f746b7)) 2. Install all the AI submodules referencing `EntityTypeManager`, e.g. `ai_automators`, `ai_validations`, `ai_search`, `ai_content_suggestions`, `ai_assistant_api`. ## Expected result The site and AI modules are still functional ## Actual result A crash occurs.
issue