You are here

public function DataTypeHelper::__construct in Search API 8

Constructs a DataTypeHelper object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

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

\Drupal\search_api\DataType\DataTypePluginManager $dataTypeManager: The data type plugin manager.

File

src/Utility/DataTypeHelper.php, line 67

Class

DataTypeHelper
Provides helper methods for dealing with Search API data types.

Namespace

Drupal\search_api\Utility

Code

public function __construct(ModuleHandlerInterface $moduleHandler, EventDispatcherInterface $eventDispatcher, DataTypePluginManager $dataTypeManager) {
  $this->moduleHandler = $moduleHandler;
  $this->eventDispatcher = $eventDispatcher;
  $this->dataTypeManager = $dataTypeManager;
}