You are here

public function File::buildLabel in Commerce File 8.2

Builds a label for the given license.

Parameters

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

Return value

string The label.

Overrides LicenseTypeInterface::buildLabel

File

src/Plugin/Commerce/LicenseType/File.php, line 113

Class

File
The file license type.

Namespace

Drupal\commerce_file\Plugin\Commerce\LicenseType

Code

public function buildLabel(LicenseInterface $license) {
  return $this
    ->t('License for file');
}