needPaths(true); } public function getAttachmentForObject($object, $data, $spec) { $paths = $object->getPaths(); $list = array(); foreach ($paths as $path) { $list[] = array( 'repositoryPHID' => $path->getRepositoryPHID(), 'path' => $path->getPathDisplay(), 'excluded' => (bool)$path->getExcluded(), ); } return array( 'paths' => $list, ); } }