You are here

public function FieldsProcessorPluginBase::getDataTypeHelper in Search API 8

Retrieves the data type helper.

Return value

\Drupal\search_api\Utility\DataTypeHelperInterface The data type helper.

1 method overrides FieldsProcessorPluginBase::getDataTypeHelper()
HtmlFilter::getDataTypeHelper in src/Plugin/search_api/processor/HtmlFilter.php
Retrieves the data type helper.

File

src/Processor/FieldsProcessorPluginBase.php, line 82

Class

FieldsProcessorPluginBase
Provides a base class for processors that work on individual fields.

Namespace

Drupal\search_api\Processor

Code

public function getDataTypeHelper() {
  return $this->dataTypeHelper ?: \Drupal::service('search_api.data_type_helper');
}