public function CerCommerceProductReferenceField::getTargetBundles in Corresponding Entity References 7.3
Overrides CerField::getTargetBundles().
Overrides CerField::getTargetBundles
File
- extensions/
cer_commerce/ commerce_product_reference.inc, line 20 - Contains a CER plugin for Commerce's Product Reference fields.
Class
- CerCommerceProductReferenceField
- @file Contains a CER plugin for Commerce's Product Reference fields.
Code
public function getTargetBundles() {
// Product reference fields store their referenceable types by instance
// instead of by field, so the $this->settings variable we inherit
// from CerField is useless here.
$instance = field_info_instance($this->entityType, $this->name, $this->bundle);
$types = $instance['settings']['referenceable_types'];
return $types ? $types : parent::getTargetBundles();
}