You are here

public function ItemInterface::setOriginalObject in Search API 8

Sets the original complex data object this item should be based on.

Parameters

\Drupal\Core\TypedData\ComplexDataInterface $original_object: The object that should be wrapped.

Return value

$this

1 method overrides ItemInterface::setOriginalObject()
Item::setOriginalObject in src/Item/Item.php
Sets the original complex data object this item should be based on.

File

src/Item/ItemInterface.php, line 47

Class

ItemInterface
Represents a search item being indexed or returned as a search result.

Namespace

Drupal\search_api\Item

Code

public function setOriginalObject(ComplexDataInterface $original_object);