You are here

public function EntityReferenceInstanceBehaviorExample::load in Entity reference 7

Act on loading entity reference fields of entities.

Overrides EntityReference_BehaviorHandler_Abstract::load

See also

hook_field_load()

File

examples/entityreference_behavior_example/plugins/behavior/EntityReferenceInstanceBehaviorExample.class.php, line 5

Class

EntityReferenceInstanceBehaviorExample

Code

public function load($entity_type, $entities, $field, $instances, $langcode, &$items) {
  drupal_set_message(t('Do something on load, on the instance level!'));
}