You are here

public function Skin::loadSkinFiles in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Skin.php \Drupal\forena\Skin::loadSkinFiles()

Adds on report specific skin files to

Parameters

string $name: name of report to add.

File

src/Skin.php, line 165
Implements \Drupal\forena\Skins

Class

Skin
Class Skin A skin is a collectio of css and js files that need to get used by an application or reports. Skins are idntified by .fri files contained in the report directory.

Namespace

Drupal\forena

Code

public function loadSkinFiles($name) {
  $this
    ->addCSS('all', $name . '.css');
  foreach (AppService::instance()->doc_formats as $ext) {
    $this
      ->addCSS($ext, $name . '-' . $ext . '.css');
  }
  $this
    ->addJS($name . '.js');
}