You are here

public function CerField::getTargetBundles in Corresponding Entity References 7.3

Returns the bundles that this field instance can reference.

Return value

array

3 calls to CerField::getTargetBundles()
CerCommerceProductReferenceField::getTargetBundles in extensions/cer_commerce/commerce_product_reference.inc
Overrides CerField::getTargetBundles().
CerEntityReferenceField::getTargetBundles in includes/fields/entity_reference.inc
@override CerField::getTargetBundles().
CerNodeReferenceField::getTargetBundles in includes/fields/node_reference.inc
@override CerField::getTargetBundles().
6 methods override CerField::getTargetBundles()
CerCommerceProductReferenceField::getTargetBundles in extensions/cer_commerce/commerce_product_reference.inc
Overrides CerField::getTargetBundles().
CerEntityReferenceField::getTargetBundles in includes/fields/entity_reference.inc
@override CerField::getTargetBundles().
CerFieldCollectionField::getTargetBundles in includes/fields/field_collection.inc
@override CerField::getTargetBundles().
CerNodeReferenceField::getTargetBundles in includes/fields/node_reference.inc
@override CerField::getTargetBundles().
CerProfile2Field::getTargetBundles in extensions/cer_profile2/profile2.inc
@override CerField::getTargetBundles().

... See full list

File

includes/CerField.inc, line 81
Contains the base class for CER field plugins.

Class

CerField
@class Represents a single field instance.

Code

public function getTargetBundles() {
  $info = entity_get_info($this
    ->getTargetType());
  return array_keys($info['bundles']);
}