Commit 36aa29e0 authored by Moshe Weitzman's avatar Moshe Weitzman Committed by Moshe Weitzman
Browse files

Rename usages to entities_by_class.

parent c64c7a75
......@@ -361,9 +361,9 @@ protected function preLoad(array &$ids = NULL) {
* Associative array of query results, keyed on the entity ID.
*/
protected function postLoad(array &$entities) {
$entity_classes = $this->getEntitiesByClass($entities);
$entities_by_class = $this->getEntitiesByClass($entities);
foreach ($entity_classes as $entity_class => &$items) {
foreach ($entities_by_class as $entity_class => &$items) {
$entity_class::postLoad($this, $entities);
// Call hook_entity_load().
......@@ -422,10 +422,10 @@ public function delete(array $entities) {
return;
}
$entity_classes = $this->getEntitiesByClass($entities);
$entities_by_class = $this->getEntitiesByClass($entities);
// Allow code to run before deleting.
foreach ($entity_classes as $entity_class => &$items) {
foreach ($entities_by_class as $entity_class => &$items) {
$entity_class::preDelete($this, $items);
foreach ($items as $entity) {
$this->invokeHook('predelete', $entity);
......
Supports Markdown
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