You are here

public function TrackingHelper::__construct in Search API 8

Constructs a new class instance.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher.

\Drupal\search_api\Utility\FieldsHelperInterface $fieldsHelper: The fields helper.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.

File

src/Utility/TrackingHelper.php, line 79

Class

TrackingHelper
Provides datasource-independent item change tracking functionality.

Namespace

Drupal\search_api\Utility

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, LanguageManagerInterface $languageManager, EventDispatcherInterface $eventDispatcher, FieldsHelperInterface $fieldsHelper, CacheBackendInterface $cache) {
  $this->languageManager = $languageManager;
  $this->entityTypeManager = $entityTypeManager;
  $this->eventDispatcher = $eventDispatcher;
  $this->fieldsHelper = $fieldsHelper;
  $this->cache = $cache;
}