function hook_view_mode_page_pre_entity_view in View Mode Page 8.2
Same name and namespace in other branches
- 7.2 view_mode_page.api.php \hook_view_mode_page_pre_entity_view()
Hook called just before an entity is used to render a view mode
Parameters
object $entity: The entity being rendered
string $entity_type: The entity type
string $content_type: The content type/bundle
string $view_mode: The view mode being used for this display
string $pattern: The pattern being matched
Return value
object The entity
1 function implements hook_view_mode_page_pre_entity_view()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_view_mode_page_pre_entity_view()
- view_mode_page_change_entity_view_mode in ./
view_mode_page.module - Render the entity with the given view mode
File
- ./
view_mode_page.api.php, line 78
Code
function hook_view_mode_page_pre_entity_view($entity, $entity_type, $content_type, $view_mode, $pattern) {
return $entity;
}