Ejemplo n.º 1
0
 /**
  * Overrides DrupalDefaultEntityController::attachLoad().
  */
 protected function attachLoad(&$queried_entities, $revision_id = FALSE)
 {
     foreach ($queried_entities as $entity) {
         // Load the states, so they are already present on the next (cached) load.
         $entity->states = $entity->getStates($all = TRUE);
         $entity->transitions = $entity->getTransitions(FALSE);
         $entity->typeMap = $entity->getTypeMap();
     }
     parent::attachLoad($queried_entities, $revision_id);
 }