public function FieldInstance::offsetGet

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php, line 515
Contains \Drupal\field\Plugin\Core\Entity\FieldInstance.

Class

FieldInstance
Defines the Field instance entity.

Namespace

Drupal\field\Plugin\Core\Entity

Code

public function &offsetGet($offset) {
  if ($offset == 'field_id') {
    return $this->field_uuid;
  }
  if ($offset == 'field_name') {
    return $this->field->id;
  }
  return $this->{$offset};
}