nextcloud/lib/public/Files/Template/BeforeGetTemplatesEvent.php
Elizabeth Danzberger 05ed5aa230
fix: Emit new BeforeGetTemplates event
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2024-07-25 11:11:38 +02:00

24 lines
458 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Files\Template;
use OCP\EventDispatcher\Event;
class BeforeGetTemplatesEvent extends Event {
private array $templates;
public function __construct(array $templates) {
parent::__construct();
$this->templates = $templates;
}
public function getTemplates(): array {
return $this->templates;
}
}