You are here

protected function ProfileEntityFieldItemList::computeValue in Profile 8

Computes the values for an item list.

Overrides ComputedItemListTrait::computeValue

File

src/Plugin/Field/ProfileEntityFieldItemList.php, line 20

Class

ProfileEntityFieldItemList
Represents a profile entity reference field.

Namespace

Drupal\profile\Plugin\Field

Code

protected function computeValue() {
  foreach ($this
    ->getUserProfiles() as $delta => $value) {
    $this->list[$delta] = $this
      ->createItem($delta, $value);
  }
}