You are here

protected function CerHandler::getReferencedEntities in Corresponding Entity References 7.2

Gets all the entities referenced by the local entity.

Return value

array Array of fully loaded referenced entities keyed by ID, or empty array if nothing has been referenced.

2 calls to CerHandler::getReferencedEntities()
CerHandler::delete in ./handler.inc
Implements CerHandlerInterface::delete().
CerHandler::insert in ./handler.inc
Implements CerHandlerInterface::insert().

File

./handler.inc, line 388
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

protected function getReferencedEntities() {
  $IDs = $this
    ->getLocalReferenceIDs();
  return $IDs ? entity_load($this->remote['entity_type'], $IDs) : array();
}