Documentation location/URL

https://www.drupal.org/docs/drupal-apis/configuration-api/creating-a-con...

Problem/Motivation

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.

Proposed resolution

I would simply correct the plugin annotation and change the "ExampleListBuilder" class accordingly.

Thanks.

Comments

juanjoespi created an issue. See original summary.

juanjoespi’s picture

Issue summary: View changes
avpaderno’s picture

Title: Suggestion for: (1809494) Creating a configuration entity type » Correct the plugin example given in "Creating a configuration entity type"
Category: Bug report » Task
avpaderno’s picture

As 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.

wylbur’s picture

I 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!

wylbur’s picture

Status: Active » Closed (outdated)