Updated: Comment #0
Blocks
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
Proposed resolution
Make the hook work/ change something about Blocks 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
?
Related Issues
- #2019647: Use EntityListController for menus
- #2004408: Allow modules to alter the result of EntityListController::getOperations
- #2004428: Less ugly operations altering
- #2023743: views: hook_entity_operation_alter() does not work with EntityListController
- #2023739: menu: hook_entity_operation_alter() does not work with EntityListController