function FieldItemInterface::__get
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::__get()
- 10 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::__get()
- 11.x core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::__get()
Magic method: Gets a property value.
Parameters
string $property_name: The name of the property to get; e.g., 'title' or 'name'.
Return value
mixed The property value.
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 126
Class
- FieldItemInterface
- Interface for entity field items.
Namespace
Drupal\Core\FieldCode
public function __get($property_name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.