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
- discuss some causes
- write a test to show operations added using the hook are not added (See: https://drupal.org/contributor-tasks/write-tests)
- propose a resolution implementation
User interface changes
No.
API changes
?