From 4303a9b39581a85dc3049d82e5f68d6b95ef0c50 Mon Sep 17 00:00:00 2001 From: Claudiu Cristea Date: Sun, 20 Nov 2022 14:09:26 +0200 Subject: [PATCH] Cast NULL to empty string --- og_ui/src/BundleFormAlter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/og_ui/src/BundleFormAlter.php b/og_ui/src/BundleFormAlter.php index 0c08163a9..78563d3d2 100644 --- a/og_ui/src/BundleFormAlter.php +++ b/og_ui/src/BundleFormAlter.php @@ -95,7 +95,7 @@ protected function prepare(array &$form, FormStateInterface $form_state) { // Example: article. $this->bundle = $this->entity->id(); // Example: Article. - $this->bundleLabel = Unicode::lcfirst($this->entity->label()); + $this->bundleLabel = Unicode::lcfirst((string) $this->entity->label()); $this->definition = $this->entity->getEntityType(); // Example: node. $this->entityTypeId = $this->definition->getBundleOf();