function drupal_system_listing

This function is kept only for backward compatibility.

See also

\Drupal\Core\SystemListing::scan().

10 calls to drupal_system_listing()
1 string reference to 'drupal_system_listing'

File

drupal/core/includes/common.inc, line 4277
Common functions that many Drupal modules will need to reference.

Code

function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1) {

  // As SystemListing is required to build a dependency injection container
  // from scratch and SystemListingInfo only extends SystemLising, this
  // class needs to be hardwired.
  $listing = new SystemListingInfo();
  return $listing
    ->scan($mask, $directory, $key, $min_depth);
}