Differential D19864 Diff 47441 src/applications/transactions/storage/PhabricatorModularTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorModularTransaction.php
| Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | abstract class PhabricatorModularTransaction | ||||
| /* final */ public function shouldHideForMail(array $xactions) { | /* final */ public function shouldHideForMail(array $xactions) { | ||||
| if ($this->getTransactionImplementation()->shouldHideForMail()) { | if ($this->getTransactionImplementation()->shouldHideForMail()) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| return parent::shouldHideForMail($xactions); | return parent::shouldHideForMail($xactions); | ||||
| } | } | ||||
| final public function shouldHideForNotifications() { | |||||
| $hide = $this->getTransactionImplementation()->shouldHideForNotifications(); | |||||
| // Returning "null" means "use the default behavior". | |||||
| if ($hide === null) { | |||||
| return parent::shouldHideForNotifications(); | |||||
| } | |||||
| return $hide; | |||||
| } | |||||
| /* final */ public function getIcon() { | /* final */ public function getIcon() { | ||||
| $icon = $this->getTransactionImplementation()->getIcon(); | $icon = $this->getTransactionImplementation()->getIcon(); | ||||
| if ($icon !== null) { | if ($icon !== null) { | ||||
| return $icon; | return $icon; | ||||
| } | } | ||||
| return parent::getIcon(); | return parent::getIcon(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||