You are here

public function IndexInterface::loadItem in Search API 8

Loads a single search object of this index.

Parameters

string $item_id: The internal item ID of the object, with datasource prefix.

Return value

\Drupal\Core\TypedData\ComplexDataInterface|null The loaded object, or NULL if the item does not exist.

2 methods override IndexInterface::loadItem()
Index::loadItem in src/Entity/Index.php
Loads a single search object of this index.
UnsavedIndexConfiguration::loadItem in src/UnsavedIndexConfiguration.php
Loads a single search object of this index.

File

src/IndexInterface.php, line 563

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function loadItem($item_id);