public function FieldTimerSimpleTextFormatter::__construct in Field Timer 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldFormatter/FieldTimerSimpleTextFormatter.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerSimpleTextFormatter::__construct()
FieldTimerSimpleTextFormatter constructor.
Parameters
$plugin_id:
$plugin_definition:
\Drupal\Core\Field\FieldDefinitionInterface $field_definition:
array $settings:
$label:
$view_mode:
array $third_party_settings:
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter:
\Symfony\Component\HttpFoundation\Request $request:
\Drupal\Component\Datetime\TimeInterface $time:
Overrides TimestampAgoFormatter::__construct
File
- src/
Plugin/ Field/ FieldFormatter/ FieldTimerSimpleTextFormatter.php, line 46
Class
- FieldTimerSimpleTextFormatter
- Plugin implementation of the 'field_timer_simple_text' formatter.
Namespace
Drupal\field_timer\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, DateFormatterInterface $date_formatter, Request $request, TimeInterface $time) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $date_formatter, $request);
$this->time = $time;
}