public function CerProfile2Field::getTargetBundles in Corresponding Entity References 7.3
@override CerField::getTargetBundles().
Overrides CerField::getTargetBundles
File
- extensions/
cer_profile2/ profile2.inc, line 48 - Contains a CER field plugin for referencing Profile2 entities. These references are not actually fields at all, so this plugin is really more of a bridge to trick CER into thinking that Profile2 is a reference field.
Class
- CerProfile2Field
- @file Contains a CER field plugin for referencing Profile2 entities. These references are not actually fields at all, so this plugin is really more of a bridge to trick CER into thinking that Profile2 is a reference field.
Code
public function getTargetBundles() {
// This field can only "reference" one type of profile. There'll be
// a separate instance of this plugin for each Profile2 type.
return (array) $this->profileType->type;
}