Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
Cast NULL to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed Nov 20, 2022
1 parent 37234a2 commit 4303a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion og_ui/src/BundleFormAlter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4303a9b

Please sign in to comment.