function ListInterface::removeItem

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

Removes the item at the specified position.

Parameters

int $index: Index of the item to remove.

Return value

$this

1 method overrides ListInterface::removeItem()
ItemList::removeItem in core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php
Removes the item at the specified position.

File

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

Class

ListInterface
Interface for a list of typed data.

Namespace

Drupal\Core\TypedData

Code

public function removeItem($index);

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