Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / view / fuel / FuelMenuView.php
blob5b35aeae09ff6afd0ae46ee153c77efaa644c6ce
1 <?php
3 final class FuelMenuView
4 extends FuelComponentView {
6 private $items = array();
8 public function newItem() {
9 $item = new FuelMenuItemView();
10 $this->items[] = $item;
11 return $item;
14 public function render() {
15 require_celerity_resource('fuel-menu-css');
17 $items = $this->items;
19 if (!$items) {
20 return null;
23 $list = phutil_tag(
24 'div',
25 array(
26 'class' => 'fuel-menu',
28 $items);
30 return $this->newComponentTag(
31 'div',
32 array(
33 'class' => 'fuel-menu-component',
35 $list);