public function Skin::merge in Forena Reports 8
Merge definitions
Parameters
array $definition: Skein definition to be merged.
File
- src/
Skin.php, line 197 - 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 merge($definition) {
if ($definition) {
foreach ($definition as $key => $value) {
if (isset($this->info[$key])) {
$this->info[$key] = array_merge($this->info[$key], $value);
}
else {
$this->info[$key] = $value;
}
}
}
}