You are here

public static function CerFieldChain::collect in Corresponding Entity References 7.3

Returns an array of every possible field chain for a single field, identified by its key in hook_cer_fields().

Return value

array

1 call to CerFieldChain::collect()
CerFieldChain::collectAll in includes/CerFieldChain.inc
Returns an array of every possible field chain for every field defined in hook_cer_fields().

File

includes/CerFieldChain.inc, line 65
Contains the CerFieldChain class.

Class

CerFieldChain
@file Contains the CerFieldChain class.

Code

public static function collect($identifier) {
  $chains = array();
  $chain = new CerFieldChain();
  $chain
    ->addField(CerField::getPlugin($identifier), $chains);
  return $chains;
}