function ComputedItemListTrait::appendItem

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php \Drupal\Core\TypedData\ComputedItemListTrait::appendItem()
  2. 10 core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php \Drupal\Core\TypedData\ComputedItemListTrait::appendItem()
  3. 11.x core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php \Drupal\Core\TypedData\ComputedItemListTrait::appendItem()

File

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

Class

ComputedItemListTrait
Provides common functionality for computed item lists.

Namespace

Drupal\Core\TypedData

Code

public function appendItem($value = NULL) {
    $this->ensureComputedValue();
    return parent::appendItem($value);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.