You are here

public static function ContentHubSearch::create in Acquia Content Hub 8

File

src/ContentHubSearch.php, line 40

Class

ContentHubSearch
Perform queries to the Content Hub "_search" endpoint [Elasticsearch].

Namespace

Drupal\acquia_contenthub

Code

public static function create(ContainerInterface $container, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager) {
  return new static($container
    ->get('acquia_contenthub.client_manager'), $language_manager, $entity_type_manager);
}