public function FieldInterface::__set

Magic method: Sets a property value of the first field item.

See also

\Drupal\Core\Entity\Field\FieldItemInterface::__set()

1 method overrides FieldInterface::__set()
Field::__set in drupal/core/lib/Drupal/Core/Entity/Field/Type/Field.php
Implements \Drupal\Core\Entity\Field\FieldInterface::__set().

File

drupal/core/lib/Drupal/Core/Entity/Field/FieldInterface.php, line 54
Contains \Drupal\Core\Entity\Field\FieldInterface.

Class

FieldInterface
Interface for fields, being lists of field items.

Namespace

Drupal\Core\Entity\Field

Code

public function __set($property_name, $value);