You are here

function synonyms_search_entity_view in Synonyms 8

Same name and namespace in other branches
  1. 2.0.x modules/synonyms_search/synonyms_search.module \synonyms_search_entity_view()

Implements hook_entity_view().

File

synonyms_search/synonyms_search.module, line 16
Integrates Synonyms with core Search module.

Code

function synonyms_search_entity_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
  \Drupal::service('synonyms.behavior.search')
    ->entityView($build, $entity, $display, $view_mode);
}