function ListInterface::appendItem

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

Appends a new item to the list.

Parameters

mixed $value: The value of the new item.

Return value

\Drupal\Core\TypedData\TypedDataInterface The item that was appended.

1 method overrides ListInterface::appendItem()
ItemList::appendItem in core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php
Appends a new item to the list.

File

core/lib/Drupal/Core/TypedData/ListInterface.php, line 103

Class

ListInterface
Interface for a list of typed data.

Namespace

Drupal\Core\TypedData

Code

public function appendItem($value = NULL);

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