public function ItemInterface::getOriginalObject in Search API 8
Returns the original complex data object this Search API item is based on.
Parameters
bool $load: (optional) If TRUE, the object will be loaded if necessary. Otherwise, NULL will be returned if the object isn't available.
Return value
\Drupal\Core\TypedData\ComplexDataInterface|null The wrapped object if it was previously set or could be loaded. NULL if it wasn't set previously and $load is FALSE.
Throws
\Drupal\search_api\SearchApiException Thrown if $load is TRUE but the object could not be loaded.
1 method overrides ItemInterface::getOriginalObject()
- Item::getOriginalObject in src/
Item/ Item.php - Returns the original complex data object this Search API item is based on.
File
- src/
Item/ ItemInterface.php, line 37
Class
- ItemInterface
- Represents a search item being indexed or returned as a search result.
Namespace
Drupal\search_api\ItemCode
public function getOriginalObject($load = TRUE);