You are here

public function RecentDownload::__construct in Download Count 8

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/RecentDownload.php, line 35

Class

RecentDownload
Provides a 'Recent Download Count' block.

Namespace

Drupal\download_count\Plugin\Block

Code

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