public function Item::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
Overrides ItemInterface::setOriginalObject
File
- src/
Item/ Item.php, line 214
Class
- Item
- Provides a default implementation for a search item.
Namespace
Drupal\search_api\ItemCode
public function setOriginalObject(ComplexDataInterface $original_object) {
$this->originalObject = $original_object;
return $this;
}