You are here

public function BatEventHandlerDurationField::__construct in Booking and Availability Management Tools for Drupal 8

Constructs a TimeInterval plugin object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

Overrides HandlerBase::__construct

File

modules/bat_event/src/Plugin/views/field/BatEventHandlerDurationField.php, line 38

Class

BatEventHandlerDurationField
Plugin annotation @ViewsField("bat_event_handler_duration_field");

Namespace

Drupal\bat_event\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $date_formatter) {
  $this->dateFormatter = $date_formatter;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}