diff options
Diffstat (limited to 'lib/private/Files/Template/TemplateManager.php')
-rw-r--r-- | lib/private/Files/Template/TemplateManager.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Template/TemplateManager.php b/lib/private/Files/Template/TemplateManager.php index 8362298b831..e9014c7c17e 100644 --- a/lib/private/Files/Template/TemplateManager.php +++ b/lib/private/Files/Template/TemplateManager.php @@ -18,6 +18,7 @@ use OCP\Files\GenericFileException; use OCP\Files\IRootFolder; use OCP\Files\Node; use OCP\Files\NotFoundException; +use OCP\Files\Template\BeforeGetTemplatesEvent; use OCP\Files\Template\FileCreatedFromTemplateEvent; use OCP\Files\Template\ICustomTemplateProvider; use OCP\Files\Template\ITemplateManager; @@ -204,6 +205,8 @@ class TemplateManager implements ITemplateManager { } } + $this->eventDispatcher->dispatchTyped(new BeforeGetTemplatesEvent($templates)); + return $templates; } |