withEdgeLogicConstraints( PhabricatorProjectObjectHasProjectEdgeType::EDGECONST, $map['projectPHIDs']); } } public function getSearchFields($object) { $fields = array(); $fields[] = id(new PhabricatorProjectSearchField()) ->setKey('projectPHIDs') ->setConduitKey('projects') ->setAliases(array('project', 'projects', 'tag', 'tags')) ->setLabel(pht('Project Tags')) ->setDescription( pht('Search for objects tagged with given projects.')); return $fields; } public function getSearchAttachments($object) { return array( id(new PhabricatorProjectsSearchEngineAttachment()) ->setAttachmentKey('projects'), ); } }