function TestFileTransfer::isFile

Checks if a particular path is a file (not a directory).

Parameters

string $path: The path to check.

Return value

bool TRUE if the specified path is a file, FALSE otherwise.

Overrides FileTransfer::isFile

File

core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php, line 73

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

public function isFile($path) {
  return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.