1 field_group.module field_group_load_field_group($group_name, $entity_type, $bundle_name, $mode)

Loads a group definition.

Parameters

string $group_name: The name of the group.

string $entity_type: The name of the entity.

string $bundle_name: The name of the bundle.

string $mode: The view mode to load.

Return value

object: Group definition.

File

core/modules/field_group/field_group.module, line 245
Field Group module.

Code

function field_group_load_field_group($group_name, $entity_type, $bundle_name, $mode) {

  $config = config('field_group.field_group.' . $entity_type . '.' . $bundle_name . '.' . $mode . '.' . $group_name);
  $object = (object) $config->get();

  return $object;
}