mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-03 20:22:46 +01:00
e431ab2189
Summary: Ref T9494. Depends on D14216. Remove 10 copies of this code. Test Plan: Ran `arc unit --everything`, browsed Config > Modules, clicked around Herald / etc. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9494 Differential Revision: https://secure.phabricator.com/D14217
16 lines
401 B
PHP
16 lines
401 B
PHP
<?php
|
|
|
|
abstract class HeraldActionGroup extends HeraldGroup {
|
|
|
|
final public function getGroupKey() {
|
|
return $this->getPhobjectClassConstant('ACTIONGROUPKEY');
|
|
}
|
|
|
|
final public static function getAllActionGroups() {
|
|
return id(new PhutilClassMapQuery())
|
|
->setAncestorClass(__CLASS__)
|
|
->setUniqueMethod('getGroupKey')
|
|
->setSortMethod('getSortKey')
|
|
->execute();
|
|
}
|
|
}
|