WP_CLI\CommandWithUpgrade::get_update_info PHP Method

get_update_info() protected method

Get the available update info
protected get_update_info ( string $slug ) : array | null
$slug string The plugin/theme slug
return array | null
    protected function get_update_info($slug)
    {
        $update_list = get_site_transient($this->upgrade_transient);
        if (!isset($update_list->response[$slug])) {
            return null;
        }
        return (array) $update_list->response[$slug];
    }