You are here

public function UnsavedIndexConfiguration::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.

Overrides IndexInterface::loadItem

File

src/UnsavedIndexConfiguration.php, line 527

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function loadItem($item_id) {
  return $this->entity
    ->loadItem($item_id);
}