W3cubDocs

/Drupal 8

public function ListInterface::appendItem

public ListInterface::appendItem($value = NULL)

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.

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!ListInterface.php/function/ListInterface::appendItem/8.1.x