You are here

public function LicenseFileManagerInterface::shouldLogDownload in Commerce File 8.2

Determines whether the download should be logged for the given license.

Parameters

\Drupal\commerce_license\Entity\LicenseInterface $license: The license.

\Drupal\Core\Session\AccountInterface|null $account: The account to check for. If null, the current user is used instead.

Return value

bool Whether the download should be logged.

1 method overrides LicenseFileManagerInterface::shouldLogDownload()
LicenseFileManager::shouldLogDownload in src/LicenseFileManager.php
Determines whether the download should be logged for the given license.

File

src/LicenseFileManagerInterface.php, line 87

Class

LicenseFileManagerInterface

Namespace

Drupal\commerce_file

Code

public function shouldLogDownload(LicenseInterface $license, AccountInterface $account = NULL);