Elgg\Notifications\NotificationsService::getDeprecatedNotificationSubject PHP Метод

getDeprecatedNotificationSubject() защищенный Метод

Get the deprecated subject
protected getDeprecatedNotificationSubject ( string $type, string $subtype ) : string
$type string Entity type
$subtype string Entity subtype
Результат 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];
    }