apps/files_external/lib/Service/UserStoragesService.php
/**
	 * Add new storage to the configuration
	 *
	 * @param StorageConfig $newStorage storage attributes
	 *
	 * @return StorageConfig storage config, with added id
	 */
Add new storage to the configuration
@param StorageConfig $newStorage storage attributes

@return StorageConfig storage config, with added id
Add new storage to the configuration @param StorageConfig $newStorage storage attributes @return StorageConfig storage config with added id
public function addStorage(StorageConfig $newStorage) {
		$newStorage->setApplicableUsers([$this->getUser()->getUID()]);
		$config = parent::addStorage($newStorage);
		return $config;
	}
public function addStorage ( StorageConfig $ newStorage ) { $ newStorage -> setApplicableUsers ( [ $ this -> getUser ( ) -> getUID ( ) ] ) ; $ config = parent :: addStorage ( $ newStorage ) ; return $ config ; }
Add new storage to the configuration
 @param StorageConfig $newStorage storage attributes
Add new storage to the configuration @param StorageConfig $newStorage storage attributes