mirror of
https://github.com/nextcloud/server.git
synced 2025-05-16 03:11:54 +00:00

Co-authored-by: greta <gretadoci@gmail.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: greta <gretadoci@gmail.com>
27 lines
662 B
PHP
27 lines
662 B
PHP
<?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']
|
|
);
|
|
}
|
|
}
|