public function ComplexDataInterface::setPropertyValues

Sets multiple property values.

Parameters

array: The array of property values to set, keyed by property name.

Throws

\InvalidArgumentException If the value of a not existing property is to be set.

\Drupal\Core\TypedData\ReadOnlyException If a read-only property is set.

5 methods override ComplexDataInterface::setPropertyValues()
Entity::setPropertyValues in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements ComplexDataInterface::setPropertyValues().
EntityTranslation::setPropertyValues in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php
Implements ComplexDataInterface::setPropertyValues().
EntityWrapper::setPropertyValues in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php
Implements ComplexDataInterface::setPropertyValues().
FieldItemBase::setPropertyValues in drupal/core/lib/Drupal/Core/Entity/Field/FieldItemBase.php
Implements ComplexDataInterface::setPropertyValues().
ViewUI::setPropertyValues in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::setPropertyValues().

File

drupal/core/lib/Drupal/Core/TypedData/ComplexDataInterface.php, line 87
Definition of Drupal\Core\TypedData\ComplexDataInterface.

Class

ComplexDataInterface
Interface for complex data; i.e. data containing named and typed properties.

Namespace

Drupal\Core\TypedData

Code

public function setPropertyValues($values);