You are here

interface ScannerInterface in Default Content for D8 8

A scanner to find YAML files in a given folder.

Hierarchy

Expanded class hierarchy of ScannerInterface

All classes that implement ScannerInterface

File

src/ScannerInterface.php, line 8

Namespace

Drupal\default_content
View source
interface ScannerInterface {

  /**
   * Returns a list of file objects.
   *
   * @param string $directory
   *   Absolute path to the directory to search.
   *
   * @return object[]
   *   List of stdClass objects with name and uri properties.
   */
  public function scan($directory);

}

Members

Namesort descending Modifiers Type Description Overrides
ScannerInterface::scan public function Returns a list of file objects. 1