function TestEntityBundleController::attachLoad

Overrides DrupalDefaultEntityController::attachLoad

File

modules/field/tests/field_test.entity.inc, line 492

Class

TestEntityBundleController
Controller class for the test_entity_bundle entity type.

Code

protected function attachLoad(&$entities, $revision_id = FALSE) {
    // Add bundle information.
    foreach ($entities as $key => $entity) {
        $entity->fttype = 'test_entity_bundle';
        $entities[$key] = $entity;
    }
    parent::attachLoad($entities, $revision_id);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.