You are here

public function ItemList::offsetExists in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php \Drupal\Core\TypedData\Plugin\DataType\ItemList::offsetExists()
  2. 10 core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php \Drupal\Core\TypedData\Plugin\DataType\ItemList::offsetExists()
1 call to ItemList::offsetExists()
CommentFieldItemList::offsetExists in core/modules/comment/src/CommentFieldItemList.php
1 method overrides ItemList::offsetExists()
CommentFieldItemList::offsetExists in core/modules/comment/src/CommentFieldItemList.php

File

core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php, line 171

Class

ItemList
A generic list class.

Namespace

Drupal\Core\TypedData\Plugin\DataType

Code

public function offsetExists($offset) {

  // We do not want to throw exceptions here, so we do not use get().
  return isset($this->list[$offset]);
}