public function FieldGroupFormatterBase::__construct in Field Group 8
Same name and namespace in other branches
- 8.3 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.
$group: The group object.
array $settings: The formatter settings.
string $label: The formatter label.
Overrides PluginBase::__construct
File
- src/
FieldGroupFormatterBase.php, line 62
Class
- FieldGroupFormatterBase
- Base class for 'Fieldgroup formatter' plugin implementations.
Namespace
Drupal\field_groupCode
public function __construct($plugin_id, $plugin_definition, $group, array $settings, $label) {
parent::__construct(array(), $plugin_id, $plugin_definition);
$this->group = $group;
$this->settings = $settings;
$this->label = $label;
$this->context = $group->context;
}