* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\Web\Widget\Tabextension; use Icinga\Web\Widget\Tabs; use Icinga\Web\Url; /** * Tabextension that adds the basket command * * @TODO: Baskets are not supported in the codebase yet (Feature #4537) */ class BasketAction implements Tabextension { /** * @see Tabextension::apply() */ public function apply(Tabs $tabs) { $tabs->addAsDropdown('basket', array( 'title' => 'URL Basket', 'icon' => 'img/classic/basket.png', 'url' => Url::fromPath('basket/add'), 'urlParams' => array( 'url' => Url::fromRequest()->getRelativeUrl() ) )); } }