Quantcast
Viewing all articles
Browse latest Browse all 295826

blocks: hook_entity_operation_alter() does not work with EntityListController

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

User interface changes

No.

API changes

?


Viewing all articles
Browse latest Browse all 295826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>