Skip to content
Snippets Groups Projects
Commit d04ed3b2 authored by mxh's avatar mxh
Browse files

Fix stuff.

parent 669b0f67
No related branches found
Tags 7.x-1.15
No related merge requests found
......@@ -86,7 +86,7 @@ class ContentDeriver implements ContainerDeriverInterface {
continue;
}
foreach ($this->entityTypeBundleInfo->getBundleInfo($entity_type_id) as $bundle => $info) {
$bundle_label = isset($info['label']) ? ($info['label'] instanceof TranslatableMarkup ? $info['label'] : new TranslatableMarkup((string) $info['label'])) : $entity_type->getLabel();
$bundle_label = isset($info['label']) ? ($info['label'] instanceof TranslatableMarkup ? $info['label'] : new TranslatableMarkup((string) $info['label'])) : $bundle;
$plugin_label = $entity_type->getBundleEntityType() ? $this->t('@bundle item (@type)', [
'@bundle' => $bundle_label,
'@type' => $entity_type->getLabel(),
......
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