You are here

public function CerHandler::references in Corresponding Entity References 7.2

Implements CerHandlerInterface::references().

Overrides CerHandlerInterface::references

2 calls to CerHandler::references()
CerHandler::addReferenceTo in ./handler.inc
Creates a reference to the remote entity on the local entity. Throws CerException if the local entity already references the remote entity, or if the field cannot hold any more values.
CerHandler::dereference in ./handler.inc
Implements CerHandlerInterface::dereference().

File

./handler.inc, line 222
Contains base code for CER handlers, which are objects responsible for creating, updating and deleting corresponding references between entities.

Class

CerHandler
@class Generic CER handler with rudimentary language handling.

Code

public function references($entity) {
  return in_array($this
    ->getRemoteEntityID($entity), $this
    ->getLocalReferenceIDs());
}