Closed (fixed)
Project:
MyREST
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2026 at 06:33 UTC
Updated:
25 Aug 2026 at 07:11 UTC
Jump to comment: Most recent
Two leftovers in the module file, both found while auditing what this module changes outside its own endpoints. Neither is a bug today; both are the kind of thing that becomes one.
hook_entity_bundle_create() and hook_entity_bundle_delete() clear the whole REST plugin definition cache whenever any bundle is created or deleted anywhere on the site. The definitions do depend on which bundles exist, so an invalidation is right — but it fires for bundles this module will never serve, and a migration that creates bundles in a loop clears the cache once per bundle.myrest_translatable_menu_link_uri_iterate_menu() is named exactly as an implementation of a hook belonging to a contributed module would be named. It is not one: it is a copy of that module's logic, called from this module's own menu builder. Today nothing else invokes it, but the name is an invitation for a future reader — or a future hook of that name — to make it run over every menu on the site.Everything.
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
Comment #4
sergeydruua commentedComment #6
sergeydruua commented