original_string: public static function iconUrlHandler($hook, $type, $url, $params) {
  
  		$entity = elgg_extract('entity', $params);
  		/* @var ElggEntity $entity */
  
  		if ($entity instanceof Comment) {
  			$owner = $entity->getOwnerEntity();
  			if (!$owner) {
  				return;
  			}
  			return $owner->getIconURL($params);
  		}
  
  		return $url;
  	}
code: public static function iconUrlHandler($hook, $type, $url, $params) {
  
  		$entity = elgg_extract('entity', $params);
  		/* @var ElggEntity $entity */
  
  		if ($entity instanceof Comment) {
  			$owner = $entity->getOwnerEntity();
  			if (!$owner) {
  				return;
  			}
  			return $owner->getIconURL($params);
  		}
  
  		return $url;
  	}
code_tokens: public static function iconUrlHandler ( $ hook , $ type , $ url , $ params ) { $ entity = elgg_extract ( 'entity' , $ params ) ; /* @var ElggEntity $entity */ if ( $ entity instanceof Comment ) { $ owner = $ entity -> getOwnerEntity ( ) ; if ( ! $ owner ) { return ; } return $ owner -> getIconURL ( $ params ) ; } return $ url ; }
docstring: Replaces comment icons
  
  @param string $hook   "entity:icon:url"
  @param string $type   "object"
  @param string $url    Current URL
  @param array  $params Hook params
  @return string
docstring_tokens: Replaces comment icons