You are here

public function FieldCollectionItem::id in Field collection 8

Same name and namespace in other branches
  1. 8.3 src/Entity/FieldCollectionItem.php \Drupal\field_collection\Entity\FieldCollectionItem::id()

Implements Drupal\Core\Entity\EntityInterface::id().

Overrides ContentEntityBase::id

3 calls to FieldCollectionItem::id()
FieldCollectionItem::deleteHostEntityReference in src/Entity/FieldCollectionItem.php
Deletes the host entity's reference of the field collection item.
FieldCollectionItem::getDelta in src/Entity/FieldCollectionItem.php
Returns the $delta of the reference to this field collection item.
FieldCollectionItem::uri in src/Entity/FieldCollectionItem.php
Overrides \Drupal\Core\Entity\Entity::uri().

File

src/Entity/FieldCollectionItem.php, line 68

Class

FieldCollectionItem
Defines the field collection item entity class.

Namespace

Drupal\field_collection\Entity

Code

public function id() {
  return $this->item_id->value;
}