@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at upstream/main 28 lines 704 B view raw
1<?php 2 3final class PhabricatorStandardCustomFieldDatasource 4 extends PhabricatorStandardCustomFieldTokenizer { 5 6 public function getFieldType() { 7 return 'datasource'; 8 } 9 10 public function getDatasource() { 11 $parameters = $this->getFieldConfigValue('datasource.parameters', array()); 12 13 $class = $this->getFieldConfigValue('datasource.class'); 14 $parent = 'PhabricatorTypeaheadDatasource'; 15 if (!is_subclass_of($class, $parent)) { 16 throw new Exception( 17 pht( 18 'Configured datasource class "%s" must be a valid subclass of '. 19 '"%s".', 20 $class, 21 $parent)); 22 } 23 24 return newv($class, array()) 25 ->setParameters($parameters); 26 } 27 28}