public function HMSFormatter::__construct in HMS Field 8
Constructor
Overrides FormatterBase::__construct
File
- src/
Plugin/ Field/ FieldFormatter/ HMSFormatter.php, line 35 - Contains \Drupal\hms_field\Plugin\Field\FieldFormatter\HMSFormatter.
Class
- HMSFormatter
- Plugin implementation of the 'hms_default_formatter' formatter.
Namespace
Drupal\hms_field\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, HMSServiceInterface $hms_service) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
$this->hms_service = $hms_service;
}