Skip to content

code analysis crashes if entity label is string rather than translatable #403

@joachim-n

Description

@joachim-n
        'label' => $entity_type->getLabel()->getUntranslatedString(),

I've never had this happen on mine, but had an issue filed at MB.

Docs say:

   * @return string|\Drupal\Core\StringTranslation\TranslatableMarkup

so we need to handle string as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions