public static function CerFieldChain::unpack in Corresponding Entity References 7.3
Constructs and returns a CerFieldChain object from an encoded string of field plugin identifiers glued together with ::.
Return value
2 calls to CerFieldChain::unpack()
- cer_unpack_field_chain in ./
cer.properties.inc - Unpacks the cer_left and cer_right values into a CerFieldChain object.
- _cer_rebuild_preset in ./
cer.install - Rebuilds a legacy CER or CNR preset as a CerPreset entity.
File
- includes/
CerFieldChain.inc, line 80 - Contains the CerFieldChain class.
Class
- CerFieldChain
- @file Contains the CerFieldChain class.
Code
public static function unpack($identifier) {
$chain = new CerFieldChain();
foreach (array_reverse(explode('::', $identifier)) as $field) {
$chain
->addField(CerField::getPlugin($field));
}
return $chain;
}