You are here

public function CommentFieldItemList::offsetExists in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/CommentFieldItemList.php \Drupal\comment\CommentFieldItemList::offsetExists()

Overrides ItemList::offsetExists

File

core/modules/comment/src/CommentFieldItemList.php, line 36
Contains \Drupal\comment\CommentFieldItemList.

Class

CommentFieldItemList
Defines a item list class for comment fields.

Namespace

Drupal\comment

Code

public function offsetExists($offset) {

  // For consistency with what happens in get(), we force offsetExists() to
  // be TRUE for delta 0.
  if ($offset === 0) {
    return TRUE;
  }
  return parent::offsetExists($offset);
}