Differential D25040 Diff 97 src/applications/drydock/logtype/DrydockLeaseWaitingForActivationLogType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/logtype/DrydockLeaseWaitingForActivationLogType.php
- This file was added.
<?php | |||||
final class DrydockLeaseWaitingForActivationLogType extends DrydockLogType { | |||||
const LOGCONST = 'core.lease.waiting-for-activation'; | |||||
public function getLogTypeName() { | |||||
return pht('Waiting For Activation'); | |||||
} | |||||
public function getLogTypeIcon(array $data) { | |||||
return 'fa-clock-o yellow'; | |||||
} | |||||
public function renderLog(array $data) { | |||||
$resource_phids = idx($data, 'resourcePHIDs', array()); | |||||
return pht( | |||||
'Waiting for activation of resources: %s.', | |||||
$this->renderHandleList($resource_phids)); | |||||
} | |||||
} |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0