Problem/Motivation

Starting the name of a bundle with a number (eg. 2-Column Reversed) displays an error message and breaks your site. You won't be able to flush cache, view Entity Types, run updates, etc. Error message displayed is

DomainException: Variable name "2_column_reversed_type" cannot start with a digit in route pattern "/admin/structure/eck/2_column_reversed/bundles/{2_column_reversed_type}". Please use a different name. in Symfony\Component\Routing\RouteCompiler::compilePattern() (line 143 of vendor\symfony\routing\RouteCompiler.php).

The entity bundle is not displayed in the Bundle list. How can I fix this and get to clear all cache, run updates, etc?

Steps to reproduce

Install ECK module
Create an Entity Type
Create a Bundle starting with a number (eg. 2-Column Reversed)

Proposed resolution

Create an error message and stop a user from creating a bundle that starts with a number

Comments

mrjavarava created an issue. See original summary.

mrjavarava’s picture

Issue summary: View changes