Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldItemInterface.php

function 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 non-existent 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 129

Class

FieldItemInterface
Interface for entity field items.

Namespace

Drupal\Core\Field

Code

public function __get($property_name);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal