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.

7 methods override ComplexDataInterface::setPropertyValues()
Entity::setPropertyValues in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::setPropertyValues().
EntityBCDecorator::setPropertyValues in drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php
Forwards the call to the decorated entity.
EntityTranslation::setPropertyValues in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::setPropertyValues().
EntityWrapper::setPropertyValues in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::setPropertyValues().
Map::setPropertyValues in drupal/core/lib/Drupal/Core/TypedData/Type/Map.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::setPropertyValues().

... See full list

File

drupal/core/lib/Drupal/Core/TypedData/ComplexDataInterface.php, line 94
Contains \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);