CommentFieldItemList::offsetExists

public CommentFieldItemList::offsetExists($offset)

Overrides ItemList::offsetExists

File

core/modules/comment/src/CommentFieldItemList.php, line 33

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);
}
doc_Drupal
2016-10-29 08:50:37
Comments
Leave a Comment

Please login to continue.