Skip to content
Snippets Groups Projects
Commit f657d489 authored by Adam Shepherd's avatar Adam Shepherd
Browse files

Issue #3129547 by AdamPS: Error for entities without langcode field

parent d67397d3
Branches
Tags 7.x-2.0-beta5
No related merge requests found
...@@ -89,5 +89,5 @@ function quickedit_preprocess_entity_page_title(&$variables) { ...@@ -89,5 +89,5 @@ function quickedit_preprocess_entity_page_title(&$variables) {
} }
$label_field = $entity->getEntityType()->getKey('label'); $label_field = $entity->getEntityType()->getKey('label');
$variables['attributes']['data-quickedit-field-id'] = $entity->getEntityTypeId() . '/' . $entity->id() . '/' . $label_field . '/' . $entity->get('langcode')->value . '/' . $variables['view_mode']; $variables['attributes']['data-quickedit-field-id'] = $entity->getEntityTypeId() . '/' . $entity->id() . '/' . $label_field . '/' . $entity->language()->getId() . '/' . $variables['view_mode'];
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment