ElggEntity::saveIconFromElggFile PHP Method

saveIconFromElggFile() public method

Saves icons using a file located in the data store as the source.
public saveIconFromElggFile ( ElggFile $file, string $type = 'icon', array $coords = [] ) : boolean
$file ElggFile An ElggFile instance
$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 saveIconFromElggFile(\ElggFile $file, $type = 'icon', array $coords = array())
    {
        return _elgg_services()->iconService->saveIconFromElggFile($this, $file, $type, $coords);
    }