public function DownloadLimit::__construct in Commerce File 8.2
Constructs a DownloadLimit 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\commerce_file\DownloadLoggerInterface $download_logger: The file download logger.
\Drupal\commerce_file\LicenseFileManagerInterface $license_file_manager: The license file manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ field/ DownloadLimit.php, line 58
Class
- DownloadLimit
- Displays the download limit for a licensed file.
Namespace
Drupal\commerce_file\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, DownloadLoggerInterface $download_logger, LicenseFileManagerInterface $license_file_manager, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->downloadLogger = $download_logger;
$this->licenseFileManager = $license_file_manager;
$this->entityTypeManager = $entity_type_manager;
}