You are here

public function FieldChain::__toString in Corresponding Entity References 7.3

Represents this chain as a machine-readable string, separating the fields with a T_PAAMAYIM_NEKUDOTAYIM (or, as we call it on planet Earth, a double colon).

File

field_object/includes/FieldChain.inc, line 37
Contains the FieldChain class.

Class

FieldChain
@class A doubly linked list of FieldInstance objects.

Code

public function __toString() {
  $key = array();
  foreach ($this->chain as $field) {
    $key[] = $field
      ->__toString();
  }
  return implode('::', $key);
}