public importResource ( string | resource $source, string $collectionName ) : |
||
$source | string | resource | |
$collectionName | string | Name of the collection the new PersistentResource belongs to |
return | A resource object representing the imported resource |