You are here

public function FieldsHelper::__construct in Search API 8

Constructs a FieldsHelper object.

Parameters

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityBundleInfo: The entity type bundle info service.

\Drupal\search_api\Utility\DataTypeHelperInterface $dataTypeHelper: The data type helper service.

File

src/Utility/FieldsHelper.php, line 95

Class

FieldsHelper
Provides helper methods for dealing with Search API fields and properties.

Namespace

Drupal\search_api\Utility

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager, EntityTypeBundleInfoInterface $entityBundleInfo, DataTypeHelperInterface $dataTypeHelper) {
  $this->entityTypeManager = $entityTypeManager;
  $this->entityFieldManager = $entityFieldManager;
  $this->entityBundleInfo = $entityBundleInfo;
  $this->dataTypeHelper = $dataTypeHelper;
}