Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291783

views: hook_entity_operation_alter() does not work with EntityListController

$
0
0

Updated: Comment #0

Views

Problem/Motivation

function hook_entity_operation_alter(array &$operations, \Drupal\Core\Entity\EntityInterface $entity) {}
was added in
#2004408-34: Allow modules to alter the result of EntityListController::getOperations
(there were some followups for random fails, so the history there is a bit confusing)

That hook was useful in #2004428: Less ugly operations altering

But, the hook did not effect some of the entities.
See #17-#24 in #2004428-17: Less ugly operations altering

#2019647: Use EntityListController for menus was opened because initially the thought was the menu operation was not added because it was not using a List Controller. It is using a list controller, it's injected through, not put in the annotations on the menu entity. (See comment #4 there.)

Proposed resolution

Make the hook work/ change something about Views so the hook works.

Remaining tasks

User interface changes

No.

API changes

?


Viewing all articles
Browse latest Browse all 291783

Trending Articles