You are here

public function LicenseFileManagerInterface::getDownloadLimit in Commerce File 8.2

Gets the download limit for the given license.

Note that the logic both checks for the global limit and a limit configured at the product variation level (if overriden).

Parameters

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

Return value

int The download limit (0 for unlimited).

1 method overrides LicenseFileManagerInterface::getDownloadLimit()
LicenseFileManager::getDownloadLimit in src/LicenseFileManager.php
Gets the download limit for the given license.

File

src/LicenseFileManagerInterface.php, line 63

Class

LicenseFileManagerInterface

Namespace

Drupal\commerce_file

Code

public function getDownloadLimit(LicenseInterface $license);