public function PanelizerEntityUser::get_entity_view_entity in Panelizer 7.3
Fetch the entity out of a build for hook_entity_view.
Parameters
$build: The render array that contains the entity.
Overrides PanelizerEntityDefault::get_entity_view_entity
File
- plugins/
entity/ PanelizerEntityUser.class.php, line 96 - Class for the Panelizer taxonomy term entity plugin.
Class
- PanelizerEntityUser
- Panelizer Entity user plugin class.
Code
public function get_entity_view_entity($build) {
$element = '#account';
if (isset($build[$element])) {
return $build[$element];
}
}