public function FieldItemInterface::__get

Magic method: Gets a property value.

Parameters

$property_name: The name of the property to get; e.g., 'title' or 'name'.

Return value

\Drupal\Core\TypedData\TypedDataInterface The property object.

Throws

\InvalidArgumentException If a not existing property is accessed.

1 method overrides FieldItemInterface::__get()
FieldItemBase::__get in drupal/core/lib/Drupal/Core/Entity/Field/FieldItemBase.php
Implements \Drupal\Core\Entity\Field\FieldItemInterface::__get().

File

drupal/core/lib/Drupal/Core/Entity/Field/FieldItemInterface.php, line 38
Contains \Drupal\Core\Entity\Field\FieldItemInterface.

Class

FieldItemInterface
Interface for entity field items.

Namespace

Drupal\Core\Entity\Field

Code

public function __get($property_name);