You are here

public function ContentEntity::setEntityMemoryCache in Search API 8

Sets the entity memory cache service.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $memory_cache: The memory cache.

Return value

$this

File

src/Plugin/search_api/datasource/ContentEntity.php, line 457

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public function setEntityMemoryCache(CacheBackendInterface $memory_cache) {
  $this->memoryCache = $memory_cache;
  return $this;
}