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