You are here

public function DocManager::setFilename in Forena Reports 8

Parameters

string $base_name: Name of file to set.

File

src/DocManager.php, line 88

Class

DocManager
Implements \Drupal\forena\DocManager @package Drupal\forena

Namespace

Drupal\forena

Code

public function setFilename($base_name) {
  $ext = $this
    ->getDocumentType();
  $this
    ->getDocument()
    ->setFilename("{$base_name}.{$ext}");
}