public function Skin::loadSkinFiles in Forena Reports 8
Same name and namespace in other branches
- 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\forenaCode
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');
}