You are here

public function ComputedItemListTrait::setValue in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php \Drupal\Core\TypedData\ComputedItemListTrait::setValue()
  2. 10 core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php \Drupal\Core\TypedData\ComputedItemListTrait::setValue()
1 method overrides ComputedItemListTrait::setValue()
ModerationStateFieldItemList::setValue in core/modules/content_moderation/src/Plugin/Field/ModerationStateFieldItemList.php
Sets the data value.

File

core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php, line 50

Class

ComputedItemListTrait
Provides common functionality for computed item lists.

Namespace

Drupal\Core\TypedData

Code

public function setValue($values, $notify = TRUE) {
  parent::setValue($values, $notify);

  // Make sure that subsequent getter calls do not try to compute the values
  // again.
  $this->valueComputed = TRUE;
}