You are here

function _field_group_get_default_formatter_settings in Field Group 8

Same name and namespace in other branches
  1. 7 field_group.module \_field_group_get_default_formatter_settings()

Get the default formatter settings for a given formatter and context.

4 calls to _field_group_get_default_formatter_settings()
FieldGroupAddForm::submitForm in src/Form/FieldGroupAddForm.php
Form submission handler.
FieldGroupTestTrait::createGroup in tests/src/Functional/FieldGroupTestTrait.php
Create a new group.
field_group_field_overview_submit in includes/field_ui.inc
Submit handler for the overview screens.
field_group_formatter_settings_update in includes/field_ui.inc
Update handler for field_group configuration settings.

File

includes/helpers.inc, line 13

Code

function _field_group_get_default_formatter_settings($format_type, $context) {
  $manager = Drupal::service('plugin.manager.field_group.formatters');
  return $manager
    ->getDefaultSettings($format_type, $context);
}