mirror of
https://github.com/nextcloud/server.git
synced 2025-02-23 08:28:36 +00:00

This removes custom rendering code an replaces it with the declarative menu actions. Also adjust the template to allow the Vue UI to mount. Custom entries still are possible. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
25 lines
552 B
PHP
25 lines
552 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCP\AppFramework\Http\Template;
|
|
|
|
/**
|
|
* Class LinkMenuAction
|
|
*
|
|
* @since 14.0.0
|
|
*/
|
|
class LinkMenuAction extends SimpleMenuAction {
|
|
/**
|
|
* LinkMenuAction constructor.
|
|
*
|
|
* @param string $label
|
|
* @param string $icon
|
|
* @param string $link
|
|
* @since 14.0.0
|
|
*/
|
|
public function __construct(string $label, string $icon, string $link) {
|
|
parent::__construct('directLink', $label, $icon, $link);
|
|
}
|
|
}
|