Updated the signature of hook_entity_view() due to https://drupal.org/node/2246681