Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GlobFileLoader.php

function GlobFileLoader::load

Same name in this branch
  1. 11.1.x vendor/symfony/dependency-injection/Loader/GlobFileLoader.php \Symfony\Component\DependencyInjection\Loader\GlobFileLoader::load()

File

vendor/symfony/routing/Loader/GlobFileLoader.php, line 24

Class

GlobFileLoader
GlobFileLoader loads files from a glob pattern.

Namespace

Symfony\Component\Routing\Loader

Code

public function load(mixed $resource, ?string $type = null) : mixed {
    $collection = new RouteCollection();
    foreach ($this->glob($resource, false, $globResource) as $path => $info) {
        $collection->addCollection($this->import($path));
    }
    $collection->addResource($globResource);
    return $collection;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal