public function Field::get

Implements \Drupal\Core\Entity\Field\FieldInterface::get().

Overrides FieldInterface::get

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/Field.php, line 120
Contains \Drupal\Core\Entity\Field\Type\Field.

Class

Field
Represents an entity field; that is, a list of field item objects.

Namespace

Drupal\Core\Entity\Field\Type

Code

public function get($property_name) {
  return $this
    ->offsetGet(0)
    ->get($property_name);
}