Add getter for EventPresentationModel::$distributionType

There are cases where we want to vary on $distributionType what is sent.
If it's an email (for example), we might want more information and
context which is unneeded via the web notification.

Bug: T249408
Change-Id: I68cedfa8389e1d935b02ca7475bf42262005d2bc
This commit is contained in:
Reedy 2020-04-05 18:57:34 +00:00
parent ce186cf03e
commit 2661c3a787

View file

@ -143,6 +143,15 @@ abstract class EchoEventPresentationModel implements JsonSerializable {
return $this->event->getCategory();
}
/**
* Get the distribution type
*
* @return string 'web' or 'email'
*/
final public function getDistributionType() {
return $this->distributionType;
}
/**
* Equivalent to IContextSource::msg for the current
* language