Differential D19184 Diff 45951 src/applications/owners/engineextension/PhabricatorOwnersPathsSearchEngineAttachment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/engineextension/PhabricatorOwnersPathsSearchEngineAttachment.php
| Show All 16 Lines | final class PhabricatorOwnersPathsSearchEngineAttachment | ||||
| public function getAttachmentForObject($object, $data, $spec) { | public function getAttachmentForObject($object, $data, $spec) { | ||||
| $paths = $object->getPaths(); | $paths = $object->getPaths(); | ||||
| $list = array(); | $list = array(); | ||||
| foreach ($paths as $path) { | foreach ($paths as $path) { | ||||
| $list[] = array( | $list[] = array( | ||||
| 'repositoryPHID' => $path->getRepositoryPHID(), | 'repositoryPHID' => $path->getRepositoryPHID(), | ||||
| 'path' => $path->getPath(), | 'path' => $path->getPathDisplay(), | ||||
| 'excluded' => (bool)$path->getExcluded(), | 'excluded' => (bool)$path->getExcluded(), | ||||
| ); | ); | ||||
| } | } | ||||
| return array( | return array( | ||||
| 'paths' => $list, | 'paths' => $list, | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||