WordPress at a glance
function is not described

Language_Pack_Upgrader::get_name_for_update() WP 3.7.0

Get the name of an item being updated.

This is a method of the class: Language_Pack_Upgrader

No Hooks.

Return

String. The name of the item being updated.

Usage

$Language_Pack_Upgrader = new Language_Pack_Upgrader();
$var = $Language_Pack_Upgrader->get_name_for_update( $update );
$update(object) (required)
The data for an update.

Changelog

Since 3.7.0 Introduced.

Code of Language Pack Upgrader::get name for update: wp-admin/includes/class-language-pack-upgrader.php WP 5.2.4

<?php
public function get_name_for_update( $update ) {
	switch ( $update->type ) {
		case 'core':
			return 'WordPress'; // Not translated

		case 'theme':
			$theme = wp_get_theme( $update->slug );
			if ( $theme->exists() ) {
				return $theme->Get( 'Name' );
			}
			break;
		case 'plugin':
			$plugin_data = get_plugins( '/' . $update->slug );
			$plugin_data = reset( $plugin_data );
			if ( $plugin_data ) {
				return $plugin_data['Name'];
			}
			break;
	}
	return '';
}