Elgg\Notifications\NotificationsService::getDeprecatedNotificationSubject PHP Method

getDeprecatedNotificationSubject() protected method

Get the deprecated subject
protected getDeprecatedNotificationSubject ( string $type, string $subtype ) : string
$type string Entity type
$subtype string Entity subtype
return string
    protected function getDeprecatedNotificationSubject($type, $subtype)
    {
        if ($type == '') {
            $type = '__BLANK__';
        }
        if ($subtype == '') {
            $subtype = '__BLANK__';
        }
        if (!isset($this->deprSubjects[$type])) {
            return '';
        }
        if (!isset($this->deprSubjects[$type][$subtype])) {
            return '';
        }
        return $this->deprSubjects[$type][$subtype];
    }