Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/TypedData/ListInterface.php \Drupal\Core\TypedData\ListInterface::appendItem()
  2. 9 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);