mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
Module: Add missing getter for property jsdir
This commit is contained in:
parent
5a38977906
commit
19e4eb6e1e
@ -57,6 +57,13 @@ class Module
|
||||
*/
|
||||
private $cssdir;
|
||||
|
||||
/**
|
||||
* Directory for Javascript
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $jsdir;
|
||||
|
||||
/**
|
||||
* Base application directory
|
||||
*
|
||||
@ -950,6 +957,26 @@ class Module
|
||||
return $this->cssdir;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module's JS directory
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getJsDir()
|
||||
{
|
||||
return $this->jsdir;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module's JS asset directory
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getJsAssetDir()
|
||||
{
|
||||
return join(DIRECTORY_SEPARATOR, [$this->assetDir, 'js']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module's controller directory
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user