Drupal Association members fund grants that make connections all over the world.
There are numerous issues around behavior instantiation:
- The constructor of the behavior gets passed $field and (sometimes) $instance, but we cache the behaviors per class in _entityreference_get_behavior_handler()
- EntityReference_BehaviorHandler_Abstract::__construct() tries to load the settings from a bogus array keys, and as a consequence $this->settings is always empty
- We pass $field and $instance to the constructor, but we also pass those to every method. We should do one or the other, not both