You are here

public function SearchApiFieldTrait::getTypedDataManager in Search API 8

Retrieves the typed data manager.

Return value

\Drupal\Core\TypedData\TypedDataManagerInterface The typed data manager.

File

src/Plugin/views/field/SearchApiFieldTrait.php, line 140

Class

SearchApiFieldTrait
Provides a trait to use for Search API Views field handlers.

Namespace

Drupal\search_api\Plugin\views\field

Code

public function getTypedDataManager() {
  return $this->typedDataManager ?: \Drupal::service('typed_data_manager');
}