Problem/Motivation
Steps to reproduce:
- Enable translation for nodes
- Override node/{node} with a page
Result:
RuntimeException: Callable "Drupal\content_translation\Access\ContentTranslationOverviewAccess::access" requires a value for the "$entity_type_id" argument. in Drupal\Component\Utility\ArgumentsResolver->handleUnresolvedArgument() (line 147 of core/lib/Drupal/Component/Utility/ArgumentsResolver.php).
Drupal\Component\Utility\ArgumentsResolver->handleUnresolvedArgument(ReflectionParameter)
Drupal\Component\Utility\ArgumentsResolver->getArgument(ReflectionParameter)
Drupal\Component\Utility\ArgumentsResolver->getArguments([Array])
Drupal\Core\Access\AccessManager->performCheck(content_translation.overview_access, Drupal\Component\Utility\ArgumentsResolver)
Drupal\Core\Access\AccessManager->checkAny([Array], Drupal\Component\Utility\ArgumentsResolver)
Drupal\Core\Access\AccessManager->check(Drupal\Core\Routing\RouteMatch, Drupal\Core\Session\AccountProxy, NULL, FALSE)
Drupal\Core\Access\AccessManager->checkNamedRoute(ef_default_content.export_node, [Array], Drupal\Core\Session\AccountProxy)
Drupal\Core\Menu\LocalTaskManager->getTasksBuild(entity.node.canonical)
menu_local_tasks()
menu_get_local_actions()
template_preprocess_page([Array], page, [Array])
_theme(page, [Array])
Drupal\Core\Theme\ThemeManager->render(page, [Array])
drupal_render([Array])
Drupal\Core\Page\DefaultHtmlFragmentRenderer->render(Drupal\Core\Page\HtmlFragment)
Drupal\Core\EventSubscriber\HtmlViewSubscriber->onHtmlFragment(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent, kernel.view, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)
call_user_func([Array], Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent, kernel.view, Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)
Symfony\Component\EventDispatcher\EventDispatcher->doDispatch([Array], kernel.view, Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(kernel.view, Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(kernel.view, Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Symfony\Component\HttpFoundation\Request, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Drupal\Core\StackMiddleware\PageCache->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Stack\StackedHttpKernel->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Drupal\Core\DrupalKernel->handle(Symfony\Component\HttpFoundation\Request)
Currently this issue is primarily to track the problem, maybe this is better fixed in core.
Comments
Comment #1
dawehnerNevermind, stupid code is stupid.
hydra--
dawehner--
Comment #2
tim.plunkettLOL I missed you closing this, I just wrote a test for it anyway. Glad it works!