How to change a class of another plugin

Elgg 2.3.8

I'd like to change the cover sizes that are in the hypeIcons plugin (see below) by my_Plugin.

How to do this?

Thank you for your kind guidance.

---------------------------------------

mod/hypeIcons/classes/hypeJunction/Icons/Icons.php

public static function setCoverSizes($hook, $type, $return, $params) {

if (!empty($return)) {

return;

}


return [

'original' => [],

'master' => [

'w' => 1000,

'h' => 370,

'square' => false,

'upscale' => true,

],

'large' => [

'w' => 500,

'h' => 185,

'square' => false,

'upscale' => false,

],

'medium' => [

'w' => 250,

'h' => 90,

'square' => false,

'upscale' => false,

],

'small' => [

'w' => 125,

'h' => 45,

'square' => false,

'upscale' => false,

],

];

}