public function FieldCollectionItemInterface::getHost in Field collection 8
Same name and namespace in other branches
- 8.3 src/FieldCollectionItemInterface.php \Drupal\field_collection\FieldCollectionItemInterface::getHost()
Returns the host entity of this field collection item.
Parameters
bool: (optional) TRUE to reset the internal cache for the host's entity type. Defaults to FALSE.
Return value
\Drupal\Core\Entity\ContentEntityInterface The host entity of this field collection item or NULL if the reference doesn't exist in the host yet.
1 method overrides FieldCollectionItemInterface::getHost()
- FieldCollectionItem::getHost in src/
Entity/ FieldCollectionItem.php - Returns the host entity of this field collection item.
File
- src/
FieldCollectionItemInterface.php, line 32
Class
- FieldCollectionItemInterface
- Provides an interface defining a field collection item entity.
Namespace
Drupal\field_collectionCode
public function getHost($reset = FALSE);