The "template_whisperer_suggestion" entity type did not specify a view_builder handler

Created on 27 September 2022, about 2 years ago
Updated 21 February 2024, 9 months ago

Problem/Motivation

When visiting breadcrumb link "View suggestion" from the detail suggestion page, this error is displayed:
Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "template_whisperer_suggestion" entity type did not specify a view_builder handler. in Drupal\Core\Entity\EntityTypeManager->getHandler() (line 256 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).

Proposed resolution

In the routing file template_whisperer.routing.yml is for the "# Detail page." used following _entity_view
_entity_view: 'template_whisperer_suggestion'

According to the documentation https://www.drupal.org/docs/drupal-apis/routing-system/structure-of-routes expects also view mode, e.g. _entity_view: 'my_entity_type.full'

How to review

  1. create a suggestion (admin/structure/template-whisperer/add)
  2. go to the usage page of this suggestion (admin/structure/template-whisperer/SUGGESTION-MACHINE-NAME/usage)
  3. Click on the breadcrumb link " View suggestion" (/admin/structure/template-whisperer/SUGGESTION-MACHINE-NAME)
  4. Ensure the page is blank and 200
🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇿Czech Republic Bohus Ulrych Pilsen (Czechia)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024