public function ContentFileStorageInterface::scan in Default Content for D8 2.0.x
Returns a list of file objects.
Parameters
string $directory: Absolute path to the directory to search.
Return value
object[] List of stdClass objects with name and uri properties.
1 method overrides ContentFileStorageInterface::scan()
- ContentFileStorage::scan in src/
ContentFileStorage.php - Returns a list of file objects.
File
- src/
ContentFileStorageInterface.php, line 21
Class
- ContentFileStorageInterface
- Finds, reads and writes default content files.
Namespace
Drupal\default_contentCode
public function scan($directory);