The same problem as described in related issue (Drupal core): #3075831: Failing assertions when bundle ID contains only numbers

When some node bundle's machine name contains only digits, during
Drupal\Core\Routing\RouteBuilder->rebuild()

it throws
AssertionError: A bundle ID is required. Bundleless entity types should pass the entity type ID again.

CommentFileSizeAuthor
#2 3503402-1.patch669 byteschodec
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

chodec created an issue. See original summary.

chodec’s picture

StatusFileSize
new669 bytes

Attaching patch, can someone pls review it?

It should be the same problem as described in related issue. Thnx.

chodec’s picture

Issue summary: View changes
Status: Active » Needs review
anybody’s picture

Status: Needs review » Needs work

@chodec could you please link the core issue and turn this into a MR maybe?

anybody’s picture

Issue summary: View changes

Did that myself now. The issue is #3075831: Failing assertions when bundle ID contains only numbers

The patch exactly fixes it like core, so let's do it.

anybody’s picture

Status: Needs work » Reviewed & tested by the community

As 1:1 like in core