mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
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:
parent
ce186cf03e
commit
2661c3a787
|
@ -143,6 +143,15 @@ abstract class EchoEventPresentationModel implements JsonSerializable {
|
||||||
return $this->event->getCategory();
|
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
|
* Equivalent to IContextSource::msg for the current
|
||||||
* language
|
* language
|
||||||
|
|
Loading…
Reference in a new issue