public function CerFieldHandler::getIDs in Corresponding Entity References 7.3
File
- includes/
CerFieldHandler.inc, line 225 - Contains CerFieldHandler.
Class
- CerFieldHandler
- @class Handles low-level operations for a single field on a single entity. Exposes methods to add, delete and check for references. This will also iterate over the references, returning each one as an EntityDrupalWrapper object.
Code
public function getIDs() {
$IDs = array();
if ($this->isMultiValue) {
foreach ($this->value as $ref) {
$IDs[] = $ref
->raw();
}
}
else {
$IDs[] = $this->value
->raw();
}
return array_unique(array_filter($IDs));
}