You are here

public function FieldGroupFormatterBase::__construct in Field Group 8.3

Same name and namespace in other branches
  1. 8 src/FieldGroupFormatterBase.php \Drupal\field_group\FieldGroupFormatterBase::__construct()

Constructs a FieldGroupFormatterBase object.

Parameters

string $plugin_id: The plugin_id for the formatter.

mixed $plugin_definition: The plugin implementation definition.

\stdClass $group: The group object.

array $settings: The formatter settings.

string $label: The formatter label.

Overrides PluginBase::__construct

File

src/FieldGroupFormatterBase.php, line 64

Class

FieldGroupFormatterBase
Base class for 'Fieldgroup formatter' plugin implementations.

Namespace

Drupal\field_group

Code

public function __construct($plugin_id, $plugin_definition, \stdClass $group, array $settings, $label) {
  parent::__construct([], $plugin_id, $plugin_definition);
  $this->group = $group;
  $this->settings = $settings;
  $this->label = $label;
  $this->context = $group->context;
}