See #1891690-18: Use EntityListController for vocabularies

"disable" always appears for config entities that do not support status.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

Status: Active » Needs review
FileSize
2.05 KB

Needs a test.

Berdir’s picture

Just noticed this on contact categories. Do we just want to use those and make sure they don't have a disable operation or do we need a test entity type for this?

twistor’s picture

Assigned: Unassigned » twistor

Stabbing at some tests.

andypost’s picture

Assigned: twistor » Unassigned

just needs test and review all configurables

twistor’s picture

Assigned: Unassigned » twistor

Cross-post.

twistor’s picture

I'm not sure if this is too much of a hack or not, but it illustrates the problem.

Off to review all configurables.

twistor’s picture

This patch fixes the bug for:

  • CustomBlockTypeListController
  • CategoryListController
  • PictureMappingListController

ShortcutListController doesn't call parent::getOperations(). Not sure if that's a bug.
BlockListController doesn't call getOperations() at all.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs tests

I think fixing both BlockListController and ShortcutListController deserve separate issues. (And yes, they probably need to be fixed.)

twistor’s picture

Assigned: twistor » Unassigned
Berdir’s picture

As pointed out in #1856556: Convert user contact form into a contact category/bundle, it seems to we should do entity access checks by default for the edit and delete operations. That will require us to add an access controller for all config entities that use this but we want that for other things anyway I guess, e.g route access checks.

Maybe there already is an issue for that?

tim.plunkett’s picture

I retitled #1995048: EntityListController::getOperations() should respect access checks since it actually was doing what #11 described

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 66e6eb8 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.