You are here

public function FieldTimerCountdownFormatterBase::__construct in Field Timer 8

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

FieldTimerCountdownFormatterBase constructor.

Parameters

$plugin_id:

$plugin_definition:

\Drupal\Core\Field\FieldDefinitionInterface $field_definition:

array $settings:

$label:

$view_mode:

array $third_party_settings:

\Drupal\Component\Datetime\TimeInterface $time:

Overrides FormatterBase::__construct

1 call to FieldTimerCountdownFormatterBase::__construct()
FieldTimerCountdownFormatter::__construct in src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatter.php
FieldTimerCountdownFormatterBase constructor.
1 method overrides FieldTimerCountdownFormatterBase::__construct()
FieldTimerCountdownFormatter::__construct in src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatter.php
FieldTimerCountdownFormatterBase constructor.

File

src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatterBase.php, line 34

Class

FieldTimerCountdownFormatterBase
Base implementation of formatters that uses jQuery Countdown plugin.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

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