Skip to content
Snippets Groups Projects
Unverified Commit 3c1039e1 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3057282 by amateescu, ndobromirov: The recursive rendering protection...

Issue #3057282 by amateescu, ndobromirov: The recursive rendering protection error message does not provide enough information
parent b4b197ff
No related branches found
No related tags found
No related merge requests found
......@@ -183,11 +183,13 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
// Protect ourselves from recursive rendering.
if (static::$recursiveRenderDepth[$recursive_render_id] > static::RECURSIVE_RENDER_LIMIT) {
$this->loggerFactory->get('entity')->error('Recursive rendering detected when rendering entity %entity_type: %entity_id, using the %field_name field on the %bundle_name bundle. Aborting rendering.', [
$this->loggerFactory->get('entity')->error('Recursive rendering detected when rendering entity %entity_type: %entity_id, using the %field_name field on the %parent_entity_type:%parent_bundle %parent_entity_id entity. Aborting rendering.', [
'%entity_type' => $entity->getEntityTypeId(),
'%entity_id' => $entity->id(),
'%field_name' => $items->getName(),
'%bundle_name' => $items->getFieldDefinition()->getTargetBundle(),
'%parent_entity_type' => $items->getFieldDefinition()->getTargetEntityTypeId(),
'%parent_bundle' => $items->getFieldDefinition()->getTargetBundle(),
'%parent_entity_id' => $items->getEntity()->id(),
]);
return $elements;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment