public function Field::__set

Implements \Drupal\Core\Entity\Field\FieldInterface::__set().

Overrides FieldInterface::__set

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/Field.php, line 127
Contains \Drupal\Core\Entity\Field\Type\Field.

Class

Field
Represents an entity field; that is, a list of field item objects.

Namespace

Drupal\Core\Entity\Field\Type

Code

public function __set($property_name, $value) {
  $this
    ->offsetGet(0)
    ->__set($property_name, $value);
}