2018-01-25 12:53:09 -05:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2018-01-25 12:53:09 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-01-25 12:53:09 -05:00
|
|
|
*/
|
2018-04-05 05:09:19 -04:00
|
|
|
namespace OCP\AppFramework\Http\Template;
|
2018-01-25 12:53:09 -05:00
|
|
|
|
2018-04-05 07:18:17 -04:00
|
|
|
/**
|
|
|
|
|
* Class LinkMenuAction
|
|
|
|
|
*
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2018-01-25 12:53:09 -05:00
|
|
|
class LinkMenuAction extends SimpleMenuAction {
|
2018-02-09 03:20:11 -05:00
|
|
|
/**
|
|
|
|
|
* LinkMenuAction constructor.
|
|
|
|
|
*
|
|
|
|
|
* @param string $label
|
|
|
|
|
* @param string $icon
|
|
|
|
|
* @param string $link
|
2018-04-05 07:18:17 -04:00
|
|
|
* @since 14.0.0
|
2018-02-09 03:20:11 -05:00
|
|
|
*/
|
|
|
|
|
public function __construct(string $label, string $icon, string $link) {
|
2024-08-28 07:15:56 -04:00
|
|
|
parent::__construct('directLink', $label, $icon, $link);
|
2018-01-25 12:53:09 -05:00
|
|
|
}
|
2018-03-07 05:05:23 -05:00
|
|
|
}
|