Triggering an entity_load() from entityform_entity_info_alter() causes all sorts of problems
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2130131. -->
Reported by: [dave reid](https://www.drupal.org/user/53892)
>>>
<blockquote><p>Entityforms implements hook_entity_info_alter() which calls entityform_get_types(), which calls entity_load_multiple_by_name(). I tried to comment out the last call, and everything worked.</p></blockquote>
<p>Trigger entity loads before the entity information is even built yet is bad, bad, bad and will cause problems like this with modules that rely on entity in a generic basis. I have a sneaking suspicion it's the reason behind the following issues:</p>
<p><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-5"><a href="https://www.drupal.org/project/metatag/issues/2019745" title="Status: Closed (won't fix)">#2019745: "Unknown taxonomy_term" or "Unknown node" - No way to create new default metatag</a></span><br>
<span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/entityform/-/work_items/2129169" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/entityform/-/work_items/2129169</a></span><br>
<span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/entityform/-/work_items/1451904" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/entityform/-/work_items/1451904</a></span></p>
> Related issue: [Issue #2019745](https://www.drupal.org/node/2019745)
> Related issue: [Issue #2129169](https://www.drupal.org/node/2129169)
> Related issue: [Issue #1451904](https://www.drupal.org/node/1451904)
issue