Page MenuHomestyx hydra

PhabricatorPhurlController.php
No OneTemporary

PhabricatorPhurlController.php

<?php
abstract class PhabricatorPhurlController extends PhabricatorController {
protected function buildApplicationCrumbs() {
$can_create = $this->hasApplicationCapability(
PhabricatorPhurlURLCreateCapability::CAPABILITY);
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(
id(new PHUIListItemView())
->setName(pht('Shorten URL'))
->setHref($this->getApplicationURI().'url/create/')
->setIcon('fa-plus-square')
->setDisabled(!$can_create)
->setWorkflow(!$can_create));
return $crumbs;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Nov 24, 2:51 PM (2 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
356125
Default Alt Text
PhabricatorPhurlController.php (578 B)

Event Timeline