Closed (outdated)
Project:
Documentation
Component:
Correction/Clarification
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 May 2024 at 01:05 UTC
Updated:
27 Jan 2025 at 23:04 UTC
Jump to comment: Most recent
https://www.drupal.org/docs/drupal-apis/configuration-api/creating-a-con...
The documentation shows an example to create a Configuration Entity Type and at some point it shows the code for the handler definition of the list_builder. In the example it shows the class: "Drupal\example\Controller\ExampleListBuilder". I've tested it and didn't work. I found a good example of this in the Next module, where it used the equivalent to: "Drupal\example\ExampleListBuilder".. tested... worked. So I guess the documentation is missleading.
I would simply correct the plugin annotation and change the "ExampleListBuilder" class accordingly.
Thanks.
Comments
Comment #2
juanjoespi commentedComment #3
avpadernoComment #4
avpadernoAs a side note, every person with a confirmed account can edit documentation pages. There is no need to create an issue in this queue, except in the case of a bigger change that needs to first gather consensus. Otherwise, for small edits, those can be done directly, considering that wrong edits can still be fixed or reverted.
Comment #5
wylbur commentedI checked the page, and it looks like this update has already been made. I'll close this ticket, but do re-open if the issue is not resolved!
Comment #6
wylbur commented