public function getSizes(\ElggEntity $entity, array $icon_sizes = array()) {

		$defaults = ($entity && $entity->getSubtype() == 'file') ? $this->config->getFileIconSizes() : $this->config->getGlobalIconSizes();
		$sizes = array_merge($defaults, $icon_sizes);

		return elgg_trigger_plugin_hook('entity:icon:sizes', $entity->getType(), array(
			'entity' => $entity,
			'subtype' => $entity->getSubtype(),
				), $sizes);
	}
public function getSizes(\ElggEntity $entity, array $icon_sizes = array()) {

		$defaults = ($entity && $entity->getSubtype() == 'file') ? $this->config->getFileIconSizes() : $this->config->getGlobalIconSizes();
		$sizes = array_merge($defaults, $icon_sizes);

		return elgg_trigger_plugin_hook('entity:icon:sizes', $entity->getType(), array(
			'entity' => $entity,
			'subtype' => $entity->getSubtype(),
				), $sizes);
	}
public function getSizes ( \ ElggEntity $ entity , array $ icon_sizes = array ( ) ) { $ defaults = ( $ entity && $ entity -> getSubtype ( ) == 'file' ) ? $ this -> config -> getFileIconSizes ( ) : $ this -> config -> getGlobalIconSizes ( ) ; $ sizes = array_merge ( $ defaults , $ icon_sizes ) ; return elgg_trigger_plugin_hook ( 'entity:icon:sizes' , $ entity -> getType ( ) , array ( 'entity' => $ entity , 'subtype' => $ entity -> getSubtype ( ) , ) , $ sizes ) ; }
Get icon size config

@param \ElggEntity $entity     Entity
@param array      $icon_sizes Predefined icon sizes
@return array
Get icon size config