ElggEntity::saveIconFromUploadedFile PHP Method

saveIconFromUploadedFile() public method

Saves icons using an uploaded file as the source.
public saveIconFromUploadedFile ( string $input_name, string $type = 'icon', array $coords = [] ) : boolean
$input_name string Form input name
$type string The name of the icon. e.g., 'icon', 'cover_photo'
$coords array An array of cropping coordinates x1, y1, x2, y2
return boolean
    public function saveIconFromUploadedFile($input_name, $type = 'icon', array $coords = array())
    {
        return _elgg_services()->iconService->saveIconFromUploadedFile($this, $input_name, $type, $coords);
    }