Loading entity_label.module +1 −1 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ function entity_label_render(EntityInterface $entity, string $type = 'singular') /** @var \Drupal\Core\Config\Entity\ConfigEntityBundleBase $bundle */ $bundle = \Drupal::entityTypeManager()->getStorage($entityTypeId)->load($entity->bundle()); $settings = $bundle->getThirdPartySettings('entity_label'); $cache[$key] = $settings["label_$type"] ?? NULL; $cache[$key] = $settings["label_$type"] ? strip_tags($settings["label_$type"]) : NULL; return $cache[$key]; } return NULL; Loading Loading
entity_label.module +1 −1 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ function entity_label_render(EntityInterface $entity, string $type = 'singular') /** @var \Drupal\Core\Config\Entity\ConfigEntityBundleBase $bundle */ $bundle = \Drupal::entityTypeManager()->getStorage($entityTypeId)->load($entity->bundle()); $settings = $bundle->getThirdPartySettings('entity_label'); $cache[$key] = $settings["label_$type"] ?? NULL; $cache[$key] = $settings["label_$type"] ? strip_tags($settings["label_$type"]) : NULL; return $cache[$key]; } return NULL; Loading