You are here

public function FieldTimerCountdownFormatter::__construct in Field Timer 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatter.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerCountdownFormatter::__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 FieldTimerCountdownFormatterBase::__construct

File

src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatter.php, line 44

Class

FieldTimerCountdownFormatter
Plugin implementation of the 'field_timer_countdown' formatter.

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, LanguageDefault $languageDefault) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $time);
  $this->languageDefault = $languageDefault;
}