function GenerateTheme::createFilesFinder

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Command/GenerateTheme.php \Drupal\Core\Command\GenerateTheme::createFilesFinder()

File

core/lib/Drupal/Core/Command/GenerateTheme.php, line 235

Class

GenerateTheme
Generates a new theme based on latest default markup.

Namespace

Drupal\Core\Command

Code

private static function createFilesFinder(string $dir) : Finder {
    return (new Finder())->in($dir)
        ->files();
}

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