3 final class PhabricatorSpacesMailEngineExtension
4 extends PhabricatorMailEngineExtension
{
6 const EXTENSIONKEY
= 'spaces';
8 public function supportsObject($object) {
9 return ($object instanceof PhabricatorSpacesInterface
);
12 public function newMailStampTemplates($object) {
14 id(new PhabricatorPHIDMailStamp())
16 ->setLabel(pht('Space')),
20 public function newMailStamps($object, array $xactions) {
21 $editor = $this->getEditor();
22 $viewer = $this->getViewer();
24 if (!PhabricatorSpacesNamespaceQuery
::getSpacesExist()) {
28 $space_phid = PhabricatorSpacesNamespaceQuery
::getObjectSpacePHID(
31 $this->getMailStamp('space')
32 ->setValue($space_phid);