src/GoogleDriveAdapter.php
public function setTeamDriveId($teamDriveId, $corpora = 'teamDrive')
    {
        $this->enableTeamDriveSupport();
        $this->defaultParams = array_merge_recursive($this->defaultParams, [
            'files.list' => [
                'corpora' => $corpora,
                'includeTeamDriveItems' => true,
                'teamDriveId' => $teamDriveId
            ]
        ]);

        if ($this->root === 'root') {
            $this->setPathPrefix($teamDriveId);
            $this->root = $teamDriveId;
        }
    }
public function setTeamDriveId($teamDriveId, $corpora = 'teamDrive')
    {
        $this->enableTeamDriveSupport();
        $this->defaultParams = array_merge_recursive($this->defaultParams, [
            'files.list' => [
                'corpora' => $corpora,
                'includeTeamDriveItems' => true,
                'teamDriveId' => $teamDriveId
            ]
        ]);

        if ($this->root === 'root') {
            $this->setPathPrefix($teamDriveId);
            $this->root = $teamDriveId;
        }
    }
public function setTeamDriveId ( $ teamDriveId , $ corpora = 'teamDrive' ) { $ this -> enableTeamDriveSupport ( ) ; $ this -> defaultParams = array_merge_recursive ( $ this -> defaultParams , [ 'files.list' => [ 'corpora' => $ corpora , 'includeTeamDriveItems' => true , 'teamDriveId' => $ teamDriveId ] ] ) ; if ( $ this -> root === 'root' ) { $ this -> setPathPrefix ( $ teamDriveId ) ; $ this -> root = $ teamDriveId ; } }
Selects Team Drive to operate by changing default parameters

@return void

@param   string   $teamDriveId   Team Drive id
@param   string   $corpora       Corpora value for files.list

@see https://developers.google.com/drive/v3/reference/files
@see https://developers.google.com/drive/v3/reference/files/list
@see \Google_Service_Drive_Resource_Files
Selects Team Drive to operate by changing default parameters