coveo-1.0.0-alpha1/modules/coveo_search_api/coveo_search_api.module
modules/coveo_search_api/coveo_search_api.module
<?php
/**
* @file
* Coveo Search API integrations module file.
*/
declare(strict_types=1);
use Drupal\Core\Hook\Attribute\LegacyHook;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\coveo_search_api\Hook\CoveoSearchApiHooks;
use Drupal\coveo_search_api\Hook\SearchApiIndexHooks;
use Drupal\search_api\IndexInterface;
/**
* Implements hook_help().
*/
#[LegacyHook]
function coveo_search_api_help($route_name, RouteMatchInterface $route_match) {
return \Drupal::service(CoveoSearchApiHooks::class)->help($route_name, $route_match);
}
/**
* Implements hook_field_info_alter().
*/
#[LegacyHook]
function coveo_search_api_field_info_alter(&$info) {
\Drupal::service(CoveoSearchApiHooks::class)->fieldInfoAlter($info);
}
/**
* Implements hook_search_api_index_presave().
*/
#[LegacyHook]
function coveo_search_api_index_presave(IndexInterface $index) {
\Drupal::service(SearchApiIndexHooks::class)->presave($index);
}
