Co-authored-by: greta <gretadoci@gmail.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: greta <gretadoci@gmail.com>pull/40163/head
parent
29661b045c
commit
d590373ae7
@ -0,0 +1,27 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/*! |
||||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors |
||||
* SPDX-License-Identifier: AGPL-3.0-or-later |
||||
*/ |
||||
namespace OCA\AdminAudit\Actions; |
||||
|
||||
use OCP\SystemTag\ISystemTag; |
||||
|
||||
class TagManagement extends Action { |
||||
/** |
||||
* @param ISystemTag $tag newly created tag |
||||
*/ |
||||
public function createTag(ISystemTag $tag): void { |
||||
$this->log('System tag "%s" (%s, %s) created', |
||||
[ |
||||
'name' => $tag->getName(), |
||||
'visbility' => $tag->isUserVisible() ? 'visible' : 'invisible', |
||||
'assignable' => $tag->isUserAssignable() ? 'user assignable' : 'system only', |
||||
], |
||||
['name', 'visibility', 'assignable'] |
||||
); |
||||
} |
||||
} |
Loading…
Reference in new issue