You are here

function entity_browser_entity_view_alter in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 entity_browser.module \entity_browser_entity_view_alter()

Implements hook_entity_view_alter().

File

./entity_browser.module, line 227
Allows to flexibly create, browse and select entities.

Code

function entity_browser_entity_view_alter(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display) {
  if (isset($build['#entity_browser_suppress_contextual'])) {
    unset($build['#contextual_links']);
  }
}