You are here

public function PanelizerEntityTaxonomyTerm::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/PanelizerEntityTaxonomyTerm.class.php, line 106
Class for the Panelizer taxonomy term entity plugin.

Class

PanelizerEntityTaxonomyTerm
Panelizer Entity taxonomy term plugin class.

Code

public function get_entity_view_entity($build) {
  $element = '#term';
  if (isset($build[$element])) {
    return $build[$element];
  }
}