ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilUiLinkToSplitButtonMenuItemAdapter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/UIComponent/SplitButton/interfaces/interface.ilSplitButtonMenuItem.php';
5
12{
16 protected $link;
17
21 protected $renderer;
22
27 public function __construct(\ILIAS\UI\Component\Button\Button $link, \ILIAS\UI\Renderer $renderer)
28 {
29 $this->link = $link;
30 $this->renderer = $renderer;
31 }
32
36 public function getContent() : string
37 {
38 return $this->renderer->render([$this->link]);
39 }
40}
An exception for terminatinating execution or to throw for unit testing.
__construct(\ILIAS\UI\Component\Button\Button $link, \ILIAS\UI\Renderer $renderer)
Interface ilSplitButtonMenuItem.
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.