Search for scanDirectory

  1. Search 7.x for scanDirectory
  2. Search 9.5.x for scanDirectory
  3. Search 10.3.x for scanDirectory
  4. Search 11.x for scanDirectory
  5. Other projects
Title Object type File name Summary
ExtensionDiscovery::scanDirectory function core/lib/Drupal/Core/Extension/ExtensionDiscovery.php Recursively scans a base directory for the extensions it contains.
FileSystem::doScanDirectory function core/lib/Drupal/Core/File/FileSystem.php Internal function to handle directory scanning with recursion.
FileSystem::scanDirectory function core/lib/Drupal/Core/File/FileSystem.php Finds all files that match a given mask in a given directory.
FileSystemDeprecationTest::testDeprecatedScanDirectory function core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php @expectedDeprecation file_scan_directory() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::scanDirectory() instead. See https://www.drupal.org/node/3038437
FileSystemInterface::scanDirectory function core/lib/Drupal/Core/File/FileSystemInterface.php Finds all files that match a given mask in a given directory.
RemoteFileScanDirectoryTest class core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php Tests \Drupal\Core\File\FileSystemInterface::scanDirectory().
RemoteFileScanDirectoryTest.php file core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php
RemoteFileScanDirectoryTest::$classname property core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php A fully-qualified stream wrapper class name to register for the test.
RemoteFileScanDirectoryTest::$modules property core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php Modules to enable.
RemoteFileScanDirectoryTest::$scheme property core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php A stream wrapper scheme to register for the test.
RemoteFileScanDirectoryTest::setUp function core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php
ScanDirectoryTest class core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Tests \Drupal\Core\File\FileSystem::scanDirectory.
ScanDirectoryTest.php file core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
ScanDirectoryTest::$fileSystem property core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php The file system.
ScanDirectoryTest::$modules property core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Modules to enable.
ScanDirectoryTest::$path property core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
ScanDirectoryTest::setUp function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
ScanDirectoryTest::testIgnoreDirectories function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Tests ::scanDirectory obeys 'file_scan_ignore_directories' setting.
ScanDirectoryTest::testOptionCallback function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Check that the callback function is called correctly.
ScanDirectoryTest::testOptionKey function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Check that key parameter sets the return value's key.
ScanDirectoryTest::testOptionMinDepth function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Check that the min_depth options lets us ignore files in the starting
directory.
ScanDirectoryTest::testOptionNoMask function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Check that the no-mask parameter is honored.
ScanDirectoryTest::testOptionRecurse function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Check that the recurse option descends into subdirectories.
ScanDirectoryTest::testReturn function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Check the format of the returned values.
TestDiscovery::scanDirectory function core/lib/Drupal/Core/Test/TestDiscovery.php Scans a given directory for class files.
TestDiscoveryTest::testScanDirectoryNoAbstract function core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php Ensure TestDiscovery::scanDirectory() ignores certain abstract file types.

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