You are here

public function FieldTokenValueTextFormatter::__construct in Field Token Value 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/FieldTokenValueTextFormatter.php \Drupal\field_token_value\Plugin\Field\FieldFormatter\FieldTokenValueTextFormatter::__construct()

Constructs a DateTimeTimeAgoFormatter object.

Parameters

string $plugin_id: The plugin_id for the formatter.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the formatter is associated.

array $settings: The formatter settings.

string $label: The formatter label display setting.

string $view_mode: The view mode.

array $third_party_settings: Third party settings.

\Drupal\field_token_value\WrapperManagerInterface $wrappers: The field token value wrapper service.

Overrides FormatterBase::__construct

File

src/Plugin/Field/FieldFormatter/FieldTokenValueTextFormatter.php, line 69

Class

FieldTokenValueTextFormatter
Provides the Field Token Value Text field formatter.

Namespace

Drupal\field_token_value\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, WrapperManagerInterface $wrappers) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
  $this->wrappers = $wrappers;
}