Elgg\Notifications\NotificationsService::setDeprecatedNotificationSubject PHP Method

setDeprecatedNotificationSubject() public method

Set message subject for deprecated notification code
public setDeprecatedNotificationSubject ( string $type, string $subtype, string $subject ) : void
$type string Entity type
$subtype string Entity subtype
$subject string Subject line
return void
    public function setDeprecatedNotificationSubject($type, $subtype, $subject)
    {
        if ($type == '') {
            $type = '__BLANK__';
        }
        if ($subtype == '') {
            $subtype = '__BLANK__';
        }
        if (!isset($this->deprSubjects[$type])) {
            $this->deprSubjects[$type] = array();
        }
        $this->deprSubjects[$type][$subtype] = $subject;
    }