Changeset View
Changeset View
Standalone View
Standalone View
src/view/layout/PhabricatorActionListView.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | protected function getTagContent() { | ||||
if (!$actions) { | if (!$actions) { | ||||
return null; | return null; | ||||
} | } | ||||
foreach ($actions as $action) { | foreach ($actions as $action) { | ||||
$action->setViewer($viewer); | $action->setViewer($viewer); | ||||
} | } | ||||
$sort = array(); | |||||
foreach ($actions as $key => $action) { | |||||
$sort[$key] = id(new PhutilSortVector()) | |||||
->addInt($action->getOrder()); | |||||
} | |||||
$sort = msortv($sort, 'getSelf'); | |||||
$actions = array_select_keys($actions, array_keys($sort)); | |||||
require_celerity_resource('phabricator-action-list-view-css'); | require_celerity_resource('phabricator-action-list-view-css'); | ||||
$items = array(); | $items = array(); | ||||
foreach ($actions as $action) { | foreach ($actions as $action) { | ||||
foreach ($action->getItems() as $item) { | foreach ($action->getItems() as $item) { | ||||
$items[] = $item; | $items[] = $item; | ||||
} | } | ||||
} | } | ||||
Show All 12 Lines |