Problem/Motivation
The website encountered an unexpected error. Try again later.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.content_type.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 242 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Steps to reproduce
Current D11 and content_entity_builder
Install module and try to add a base entity
Proposed resolution
I have looked at the code and in my opinion something is missing in the
content_entity_builder.routing.yml
adding this a the end of the file and a drush cr solved the problem.
entity.content_type.canonical:
path: '/admin/structure/content-types/manage/{content_type}'
defaults:
_controller: '\Drupal\content_entity_builder\Controller\ContentEntityBuilderController::editContentType'
_title_callback: '\Drupal\content_entity_builder\Controller\ContentEntityBuilderController::editContentTypeTitle'
requirements:
_permission: 'administer content entity types'
options:
parameters:
content_type:
type: entity:content_type
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork content_entity_builder-3615960
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
Comment #2
bennos commentedLittle change. better use:
looks like the problem is not fully solved. after adding a new entity and after adding the first field in the new entity thiss appears:
The website encountered an unexpected error. Try again later.
InvalidArgumentException: The controller for URI "" is not callable. in Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition() (line 38 of core/lib/Drupal/Core/Controller/ControllerResolver.php).
after as drush cr it all fine and cleared. look like there is a something like
needed. Better we find the right place for this together.
Comment #5
dkmishra commentedPlease review.
Comment #6
vinodhini.e commentedHi,
Thanks.
Comment #8
nagy.balint commentedThanks