You are here

public static function FormatterHelper::entityViewPrender in Field Group 8.3

Pre render callback for rendering groups on entities without theme hook.

Parameters

array $element: Entity being rendered.

Return value

array

File

src/FormatterHelper.php, line 44

Class

FormatterHelper
Static methods for fieldgroup formatters.

Namespace

Drupal\field_group

Code

public static function entityViewPrender(array $element) {
  field_group_build_entity_groups($element, 'view');
  return $element;
}