Problem/Motivation
While profiling a hefty admin screen, I noticed that the array_map callback in EntityRouteContextRouteHelper::getAllRouteNames() was being called over 120k times.
Tracing this to EntityRouteContext::getAvailableContexts, this function is only used to get entity type ids. We instead use $this->entityTypeManager->getDefinitions(), simplifying the calls below it.
Issue fork entity_route_context-3372116
Show commands
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 #3
acbramley commentedThis dropped it off the profile entirely.
Comment #5
dpiComment #7
mstrelan commentedLooks like this is fixed.