public function LanguageWithFallback::setEntityRepository in Search API 8
Sets the entity repository.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The new entity repository.
Return value
$this
File
- src/
Plugin/ search_api/ processor/ LanguageWithFallback.php, line 76
Class
- LanguageWithFallback
- Adds the item's language (with fallbacks) to the indexed data.
Namespace
Drupal\search_api\Plugin\search_api\processorCode
public function setEntityRepository(EntityRepositoryInterface $entityRepository) {
$this->entityRepository = $entityRepository;
return $this;
}