You are here

public function FieldCollectionItemInterface::getHostId in Field collection 8.3

Same name and namespace in other branches
  1. 8 src/FieldCollectionItemInterface.php \Drupal\field_collection\FieldCollectionItemInterface::getHostId()

Returns the id of the host entity for this field collection item.

Return value

string|int|null The id of the host entity for this field collection item, or NULL if the reference doesn't exist in the host yet.

1 method overrides FieldCollectionItemInterface::getHostId()
FieldCollectionItem::getHostId in src/Entity/FieldCollectionItem.php
Returns the id of the host entity for this field collection item.

File

src/FieldCollectionItemInterface.php, line 41

Class

FieldCollectionItemInterface
Provides an interface defining a field collection item entity.

Namespace

Drupal\field_collection

Code

public function getHostId();