You are here

public function FilenameGeneratorInterface::generateFilename in Entity Print 8.2

Generates a filename to be used for a printed document.

Parameters

\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities to generate a filename for.

callable $entity_label_callback: (optional) A function to generate the label for an individual entity.

Return value

string The generated filename.

1 method overrides FilenameGeneratorInterface::generateFilename()
FilenameGenerator::generateFilename in src/FilenameGenerator.php
Generates a filename to be used for a printed document.

File

src/FilenameGeneratorInterface.php, line 28

Class

FilenameGeneratorInterface
The filename generator interface.

Namespace

Drupal\entity_print

Code

public function generateFilename(array $entities, callable $entity_label_callback = NULL);