You are here

public function FieldItemInterface::__get in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\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 core/lib/Drupal/Core/Field/FieldItemBase.php
Magic method: Gets a property value.

File

core/lib/Drupal/Core/Field/FieldItemInterface.php, line 131
Contains \Drupal\Core\Field\FieldItemInterface.

Class

FieldItemInterface
Interface for entity field items.

Namespace

Drupal\Core\Field

Code

public function __get($property_name);