public function CorrespondingReference::setBundles in Corresponding Entity References 8.4
Sets the array of referenced bundle names keyed by entity ID.
Parameters
array $bundles: The new referenced bundle names, keyed by entity ID.
Return value
$this
Overrides CorrespondingReferenceInterface::setBundles
File
- src/
Entity/ CorrespondingReference.php, line 179
Class
- CorrespondingReference
- Defines a corresponding reference entity.
Namespace
Drupal\cer\EntityCode
public function setBundles(array $bundles) {
$this->bundles = $bundles;
return $this;
}