Commit bf7b0174 authored by alexpott's avatar alexpott
Browse files

Issue #2295229 by jhodgdon: Do not need to pass entity type to entity CRUD hooks.

parent 5f9c6c3c
......@@ -159,7 +159,7 @@ protected function invokeHook($hook, EntityInterface $entity) {
// Invoke the hook.
$this->moduleHandler()->invokeAll($this->entityTypeId . '_' . $hook, array($entity));
// Invoke the respective entity-level hook.
$this->moduleHandler()->invokeAll('entity_' . $hook, array($entity, $this->entityTypeId));
$this->moduleHandler()->invokeAll('entity_' . $hook, array($entity));
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment