diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-08-05 02:46:23 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-08-05 02:46:23 +0400 |
commit | 2615404eab2e96048583caccf86248af2dd90d9b (patch) | |
tree | 0d85d6b4dcc2bb61bd244d29b99aaf2378fbc131 /core/Twig.php | |
parent | cf8d0a51591e39ecf8aa8f4c09b5672ec2d312cd (diff) |
Refs #4040, #4041, move visualization only view properties to separate visualizations, changed JavaScript properties to 'client side parameters' and 'overridable properties' to 'client side properties', changed keep_summary_row from a JavaScript property to a client side property, allowed visualization properties to be inherited, fixed system that allowed visualizations to set custom defaults for property values, modified behavior of datatable_css_class viewdatatable property, allow view properties to be customized in metadata based on the visualization used, and tweaks to UI Integration tests.
Diffstat (limited to 'core/Twig.php')
-rw-r--r-- | core/Twig.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Twig.php b/core/Twig.php index 5a316c65ce..f65825065b 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -73,6 +73,15 @@ class Twig $this->addFunction_loadJavascriptTranslations(); $this->addFunction_sparkline(); $this->addFunction_postEvent(); + $this->addFunction_isPluginLoaded(); + } + + protected function addFunction_isPluginLoaded() + { + $isPluginLoadedFunction = new Twig_SimpleFunction('isPluginLoaded', function ($pluginName) { + return PluginsManager::getInstance()->isPluginLoaded($pluginName); + }); + $this->twig->addFunction($isPluginLoadedFunction); } protected function addFunction_includeAssets() |