Module: Add missing getter for property `jsdir`

This commit is contained in:
Johannes Meyer 2020-11-12 15:33:43 +01:00
parent 5a38977906
commit 19e4eb6e1e
1 changed files with 27 additions and 0 deletions

View File

@ -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
*